]> git.saurik.com Git - cydia.git/commitdiff
Objective-C objects do not officially exist until their self has been reassigned.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 09:31:52 +0000 (01:31 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 09:31:52 +0000 (01:31 -0800)
MobileCydia.mm

index 5dc335ea639a2549b91655ea67787ea6cbb58fb6..f526a47f4ff800bea5fb4600cfa1bb7813cc8a28 100644 (file)
@@ -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;
 }