From fd9856445e11b3740edc0dfc8caff92b1522af80 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 1 Sep 2009 09:08:29 +0000 Subject: [PATCH] Use _pooled in CYConsole. --- Library.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Library.mm b/Library.mm index d7c0aec..16db5d0 100644 --- a/Library.mm +++ b/Library.mm @@ -995,9 +995,7 @@ void CYConsole(FILE *fin, FILE *fout, FILE *ferr) { __gnu_cxx::stdio_filebuf bin(fin, std::ios::in); std::istream sin(&bin); - for (;;) { - NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]); - + for (;;) { _pooled fputs(">>> ", fout); fflush(fout); @@ -1031,8 +1029,6 @@ void CYConsole(FILE *fin, FILE *fout, FILE *ferr) { fputs("\n", fout); fflush(fout); } - - [pool release]; } } -- 2.47.2