From: Jay Freeman (saurik) Date: Fri, 18 Feb 2011 09:31:52 +0000 (-0800) Subject: Objective-C objects do not officially exist until their self has been reassigned. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/6939e904223ac320cc54e3683315ecf07bfe80ba Objective-C objects do not officially exist until their self has been reassigned. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 5dc335ea..f526a47f 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; }