Commit 5dac8a90 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Drain the autorelease pool within loop in OnMainThread().

parent ac0368e8
...@@ -314,8 +314,13 @@ void OnMainThread(dispatch_block_t block) ...@@ -314,8 +314,13 @@ void OnMainThread(dispatch_block_t block)
} }
if (!finished) if (!finished)
{
[pool release];
pool = [[NSAutoreleasePool alloc] init];
kevent(queue->kq, NULL, 0, &kev, 1, NULL); kevent(queue->kq, NULL, 0, &kev, 1, NULL);
} }
}
[pool release]; [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