diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 17:56:38 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 17:56:38 -0800 |
commit | f3e2c0acaed45b8c2793cfb4cd714442e1d026ef (patch) | |
tree | de69c25ee8a3f8d30c1f7f4f9c08a88bbad110f7 /MobileCydia.mm | |
parent | e5e703586bb55739784c7275b985860b13f6848c (diff) |
That's an interesting corner case.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index c2a02e6..87c0b6e 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]; } |