Replaced some NSAutoreleasepool with @autoreleasepool.

This commit is contained in:
Damiano Galassi committed 2014-10-23 14:23:41 +02:00
1 parent 2303dfb455
commit d380b827ef
1 file changed
+1 -3
+1 -3
View File
@@ -225,7 +225,7 @@
});
while (!done) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
@autoreleasepool {
@try {
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES];
if (event) [NSApp sendEvent:event];
@@ -233,8 +233,6 @@
@catch (NSException *localException) {
NSLog(@"Exception thrown during save: %@", localException);
}
@finally {
[pool drain];
}
}