summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-25 15:53:19 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-25 15:53:19 -0800
commitf4db946ef5292a34e214a4eb56b32864ce4d1a84 (patch)
tree4fb1dd83a910ffbb1fdf77adc53b17556dfae584
parent0944377bb2304a84195f37bed37d59bb2762dad6 (diff)
Use a much more reasonable capacity for cydia.getInstalledPackages().
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index b849f5e..dae7d61 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3678,7 +3678,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
- (NSArray *) getInstalledPackages {
NSArray *packages([[Database sharedInstance] packages]);
- NSMutableArray *installed([NSMutableArray arrayWithCapacity:[packages count]]);
+ NSMutableArray *installed([NSMutableArray arrayWithCapacity:1024]);
for (Package *package in packages)
if ([package installed] != nil)
[installed addObject:package];