]> git.saurik.com Git - cydia.git/commitdiff
That's an interesting corner case.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 01:56:38 +0000 (17:56 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 01:56:38 +0000 (17:56 -0800)
MobileCydia.mm

index c2a02e6437d5f0e10bce685fcf56e895d34d42c7..87c0b6e259d746f82d01f227686d588e5ad50925 100644 (file)
@@ -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];
 }