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

This commit is contained in:
Ken Thomases 2013-04-03 18:56:11 -05:00 committed by Alexandre Julliard
parent ac0368e800
commit 5dac8a90cc
1 changed files with 5 additions and 0 deletions

View File

@ -314,7 +314,12 @@ void OnMainThread(dispatch_block_t block)
}
if (!finished)
{
[pool release];
pool = [[NSAutoreleasePool alloc] init];
kevent(queue->kq, NULL, 0, &kev, 1, NULL);
}
}
[pool release];