summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-18 01:31:52 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-18 01:31:52 -0800
commit7c642bd63972a5545e72cf5d264f6fa3e42ef1bc (patch)
treea88485514d2234aa6e229a9ae06ec0d935c3924b
parent028dbd1c28f82f646a438ed00b5b8a9a1678446e (diff)
Objective-C objects do not officially exist until their self has been reassigned.
-rw-r--r--MobileCydia.mm7
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;
}