Skip to content

Commit

Permalink
merge commit 9a46ace
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvarma committed May 18, 2016
1 parent 0f1abe8 commit a26be64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Frameworks/Foundation/NSRunLoop.mm
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,11 @@ - (void)removeTimer:(NSTimer*)timer forMode:(NSString*)mode {

- (void)_processMainRunLoop:(int)value {
NSRunLoopState* state = [self _stateForMode:NSDefaultRunLoopMode];
// Wrap code in a autorelease pool so all the auto released objects from calling the event
// handlers can be manually released.
NSAutoreleasePool* pool = [NSAutoreleasePool new];
[state _handleSignaledInput:value];
[pool release];
}

@end

0 comments on commit a26be64

Please sign in to comment.