summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index b7050fc..ec4ba25 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -7542,6 +7542,9 @@ freeing the view controllers on tab change */
}
- (void) _reloadPackages:(NSArray *)packages {
+ CFRelease(packages_);
+ packages_ = CFArrayCreateMutable(kCFAllocatorDefault, [packages count], NULL);
+
_trace();
for (Package *package in packages)
if ([package upgradableAndEssential:YES] || [package visible])
@@ -7556,8 +7559,6 @@ freeing the view controllers on tab change */
era_ = [database_ era];
NSArray *packages = [database_ packages];
- CFArrayRemoveAllValues(packages_);
-
[sections_ removeAllObjects];
#if 1