Ken Thomases : winemac: Drain the autorelease pool within loop in OnMainThread().
Module: wine Branch: master Commit: 5dac8a90cc718548fab6455e6130157ca4024f5c URL: http://source.winehq.org/git/wine.git/?a=commit;h=5dac8a90cc718548fab6455e61... Author: Ken Thomases <ken(a)codeweavers.com> Date: Wed Apr 3 18:56:11 2013 -0500 winemac: Drain the autorelease pool within loop in OnMainThread(). --- dlls/winemac.drv/cocoa_event.m | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/winemac.drv/cocoa_event.m b/dlls/winemac.drv/cocoa_event.m index a1a6f9c..76fb543 100644 --- a/dlls/winemac.drv/cocoa_event.m +++ b/dlls/winemac.drv/cocoa_event.m @@ -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];
participants (1)
-
Alexandre Julliard