]> git.saurik.com Git - cydia.git/blobdiff - MobileCydia.mm
That's an interesting corner case.
[cydia.git] / 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];
 }