Replaced some NSAutoreleasepool with @autoreleasepool.
This commit is contained in:
1 parent
2303dfb455
commit
d380b827ef
1 file changed
+1
-3
@@ -225,7 +225,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
while (!done) {
|
while (!done) {
|
||||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
@autoreleasepool {
|
||||||
@try {
|
@try {
|
||||||
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES];
|
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||||
if (event) [NSApp sendEvent:event];
|
if (event) [NSApp sendEvent:event];
|
||||||
@@ -233,8 +233,6 @@
|
|||||||
@catch (NSException *localException) {
|
@catch (NSException *localException) {
|
||||||
NSLog(@"Exception thrown during save: %@", localException);
|
NSLog(@"Exception thrown during save: %@", localException);
|
||||||
}
|
}
|
||||||
@finally {
|
|
||||||
[pool drain];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user