From: Jay Freeman (saurik) Date: Thu, 8 Jul 2010 02:35:17 +0000 (+0000) Subject: Update injection handler for new local pool semantics. X-Git-Tag: v0.9.432~26 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/97f6a0051f183327629871291ae902250d455385?ds=inline Update injection handler for new local pool semantics. --- diff --git a/Handler.mm b/Handler.mm index 01c3cbc..407719a 100644 --- a/Handler.mm +++ b/Handler.mm @@ -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);