winemac: Drain the autorelease pool within loop in OnMainThread().
This commit is contained in:
parent
ac0368e800
commit
5dac8a90cc
|
@ -314,7 +314,12 @@ 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];
|
||||||
|
|
Loading…
Reference in New Issue