vlc | branch: master | David Fuhrmann <[email protected]> | Sat Mar 2 12:22:07 2013 +0100| [def5284a659b1eeea3778844c13261a573fe52d2] | committer: David Fuhrmann
macosx: add missing autorelease pool > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=def5284a659b1eeea3778844c13261a573fe52d2 --- modules/gui/macosx/intf.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index 9b54b6b..03ed262 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -195,6 +195,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args) switch(i_query) { case VOUT_WINDOW_SET_STATE: { + NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init]; unsigned i_state = va_arg(args, unsigned); NSInteger i_cooca_level = NSNormalWindowLevel; @@ -210,6 +211,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args) [inv performSelectorOnMainThread:@selector(invoke) withObject:nil waitUntilDone:NO]; + [o_pool release]; return VLC_SUCCESS; } case VOUT_WINDOW_SET_SIZE: _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
