From 7c642bd63972a5545e72cf5d264f6fa3e42ef1bc Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 18 Feb 2011 01:31:52 -0800 Subject: [PATCH] Objective-C objects do not officially exist until their self has been reassigned. --- MobileCydia.mm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } -- 2.45.2