winemac: Wrap performing requests from background threads in an autorelease pool.
commite5c120893dc164a0ce387ea10228b1a2f8094eaf
authorKen Thomases <ken@codeweavers.com>
Wed, 17 Feb 2016 19:42:54 +0000 (17 13:42 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 18 Feb 2016 12:05:49 +0000 (18 21:05 +0900)
treeaada330018345e7b4ceb43ce1e159e24ff058dcf
parent58719f60d5dca15f0f0de625bc307e04b01fc6d9
winemac: Wrap performing requests from background threads in an autorelease pool.

Cocoa manages an autorelease pool on the main thread, but it only drains it
when it processes an event.  Our requests come through a run loop source, which
doesn't count as an event.  So, autoreleased objects can accumulate when the
app is not being interacted with.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_app.m