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