Commit 113cbbcd authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed race condition crash when closing the vout

vout_display_opengl_Delete will call OpenglLock, so it is a bad idea to previously release sys->glView
(cherry picked from commit c6a264bf022d834e7617948e4923012fc1d8369d)
parent 54316e01
......@@ -266,11 +266,11 @@ void Close (vlc_object_t *this)
[(id)sys->container performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO];
[sys->glView performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:NO];
[sys->glView release];
if (sys->gl.sys != NULL)
vout_display_opengl_Delete (sys->vgl);
[sys->glView release];
if (sys->embed)
vout_display_DeleteWindow (vd, sys->embed);
free (sys);
......
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