]> git.saurik.com Git - cycript.git/commitdiff
Update injection handler for new local pool semantics.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 8 Jul 2010 02:35:17 +0000 (02:35 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 8 Jul 2010 02:35:17 +0000 (02:35 +0000)
Handler.mm

index 01c3cbcbf8dd1a58f1f8f460a5d0c45f947a95c3..407719a9eb1506533e4731b31350be0b1cbc2aaf 100644 (file)
@@ -111,7 +111,7 @@ struct CYClient :
             if (!CYRecvAll(socket_, &size, sizeof(size)))
                 return;
 
-            CYPool pool;
+            CYLocalPool pool;
             char *data(new(pool) char[size + 1]);
             if (!CYRecvAll(socket_, data, size))
                 return;
@@ -131,7 +131,7 @@ struct CYClient :
                 NSAutoreleasePool *ar = [[NSAutoreleasePool alloc] init];
 
                 CYOptions options;
-                CYContext context(driver.pool_, options);
+                CYContext context(options);
                 driver.program_->Replace(context);
                 std::ostringstream str;
                 CYOutput out(str, options);