]> git.saurik.com Git - cydia.git/commitdiff
Allocate Package objects into an NSZone.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Dec 2010 00:27:29 +0000 (16:27 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Dec 2010 09:46:26 +0000 (01:46 -0800)
MobileCydia.mm

index da729a8932903fe9ba0df296675aaa30614f84d0..249c15d975f39e4ab94e51c17775463889aefabc 100644 (file)
@@ -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 {