From: Jay Freeman (saurik) Date: Sat, 19 Feb 2011 01:56:38 +0000 (-0800) Subject: That's an interesting corner case. X-Git-Tag: v1.1.0%b1~307 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/f3e2c0acaed45b8c2793cfb4cd714442e1d026ef That's an interesting corner case. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index c2a02e64..87c0b6e2 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7735,11 +7735,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { if (package_ != nil) [package_ autorelease]; package_ = [database_ packageWithName:name_]; + if (package_ != nil) { - [package_ retain]; + package_ = [package_ retain]; [subscribedSwitch_ setOn:([package_ subscribed] ? 1 : 0) animated:NO]; [ignoredSwitch_ setOn:([package_ ignored] ? 1 : 0) animated:NO]; - } + } // XXX: what now, G? [table_ reloadData]; }