projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d9b5ee
)
Use _pooled in CYConsole.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Tue, 1 Sep 2009 09:08:29 +0000
(09:08 +0000)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Tue, 1 Sep 2009 09:08:29 +0000
(09:08 +0000)
Library.mm
patch
|
blob
|
blame
|
history
diff --git
a/Library.mm
b/Library.mm
index d7c0aec2da3ecd5b5f39be3e3d2291bb3d4276ef..16db5d0e141adb2bcfa9ab35b947a5028f18174a 100644
(file)
--- a/
Library.mm
+++ b/
Library.mm
@@
-995,9
+995,7
@@
void CYConsole(FILE *fin, FILE *fout, FILE *ferr) {
__gnu_cxx::stdio_filebuf<char> 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];
}
}