Commit def5284a authored by David Fuhrmann's avatar David Fuhrmann
Browse files

macosx: add missing autorelease pool

parent 49a3687a
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment