From f3e2c0acaed45b8c2793cfb4cd714442e1d026ef Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 18 Feb 2011 17:56:38 -0800 Subject: [PATCH] That's an interesting corner case. --- MobileCydia.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]; } -- 2.45.2