Commit bdbb3514 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Use a more idiomatic pattern for an autorelease pool around a loop.

parent 9035e58e
......@@ -2318,11 +2318,11 @@ static NSString* WineLocalizedString(unsigned int stringID)
*/
static void PerformRequest(void *info)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
WineApplicationController* controller = [WineApplicationController sharedController];
for (;;)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
__block dispatch_block_t block;
dispatch_sync(controller->requestsManipQueue, ^{
......@@ -2336,15 +2336,16 @@ static void PerformRequest(void *info)
});
if (!block)
{
[pool release];
break;
}
block();
[block release];
[pool release];
pool = [[NSAutoreleasePool alloc] init];
}
[pool release];
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment