diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 01:31:52 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 01:31:52 -0800 |
commit | 7c642bd63972a5545e72cf5d264f6fa3e42ef1bc (patch) | |
tree | a88485514d2234aa6e229a9ae06ec0d935c3924b | |
parent | 028dbd1c28f82f646a438ed00b5b8a9a1678446e (diff) |
Objective-C objects do not officially exist until their self has been reassigned.
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 5dc335e..f526a47 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7666,10 +7666,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (id) initWithDatabase:(Database *)database source:(Source *)source { - source_ = source; - key_ = [[source key] retain]; - - if ((self = [super initWithDatabase:database title:[source_ label] filter:@selector(isVisibleInSource:) with:source_]) != nil) { + if ((self = [super initWithDatabase:database title:[source label] filter:@selector(isVisibleInSource:) with:source]) != nil) { + source_ = source; + key_ = [[source key] retain]; } return self; } |