Ken Thomases : winemac: Drain the autorelease pool within loop in OnMainThread().
Alexandre Julliard
julliard at winehq.org
Thu Apr 4 13:54:15 CDT 2013
Module: wine
Branch: master
Commit: 5dac8a90cc718548fab6455e6130157ca4024f5c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5dac8a90cc718548fab6455e6130157ca4024f5c
Author: Ken Thomases <ken at 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];
More information about the wine-cvs
mailing list