adium 4472:a06b36eb9ec0: Code that uses @autoreleasepool won't b...
commits at adium.im
commits at adium.im
Sun Jan 8 02:43:49 UTC 2012
details: http://hg.adium.im/adium/rev/a06b36eb9ec0
revision: 4472:a06b36eb9ec0
branch: (none)
author: Peter Hosey <hg at boredzo.org>
date: Sat Jan 07 18:43:00 2012 -0800
Code that uses @autoreleasepool won't build on 10.6. Switching to NSAutoreleasePool in the meantime. Also restored the return statement, which the compiler suspiciously didn't warn about.
diffs (20 lines):
diff -r 5d52dabbebe4 -r a06b36eb9ec0 Source/ApplescriptRunner.m
--- a/Source/ApplescriptRunner.m Sat Jan 07 18:30:48 2012 -0800
+++ b/Source/ApplescriptRunner.m Sat Jan 07 18:43:00 2012 -0800
@@ -217,7 +217,8 @@
int main(int argc, const char *argv[])
{
- @autoreleasepool {
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ {
AIApplescriptRunner *applescriptRunner;
NSProcessInfo *processInfo;
NSArray *processArguments;
@@ -267,4 +268,6 @@
[applescriptRunner release];
}
+ [pool release];
+ return EXIT_SUCCESS;
}
More information about the commits
mailing list