diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-30 16:27:29 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-01 01:46:26 -0800 |
commit | 8564efc10bfb681032fc53cf3658b01dfb4ca29f (patch) | |
tree | fde91d02c56ef072a6b819d60f46351db320a858 | |
parent | aab28f8b512fa6ddcad8d4274f4a1cd39fac0ef3 (diff) |
Allocate Package objects into an NSZone.
-rw-r--r-- | MobileCydia.mm | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index da729a8..249c15d 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -2295,12 +2295,26 @@ struct PackageNameOrdering : if (version.end()) return nil; - return [[[Package alloc] - initWithVersion:version - withZone:zone - inPool:pool - database:database - ] autorelease]; + Package *package; + + _profile(Package$packageWithIterator$Allocate) + package = [Package allocWithZone:zone]; + _end + + _profile(Package$packageWithIterator$Initialize) + package = [package + initWithVersion:version + withZone:zone + inPool:pool + database:database + ]; + _end + + _profile(Package$packageWithIterator$Autorelease) + package = [package autorelease]; + _end + + return package; } - (pkgCache::PkgIterator) iterator { |