winemac: Drain the autorelease pool within loop in OnMainThread().
This commit is contained in:
parent
ac0368e800
commit
5dac8a90cc
|
@ -314,8 +314,13 @@ void OnMainThread(dispatch_block_t block)
|
|||
}
|
||||
|
||||
if (!finished)
|
||||
{
|
||||
[pool release];
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
kevent(queue->kq, NULL, 0, &kev, 1, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
[pool release];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue