gl/cocoa: do not terminate loop in gst_gl_window_cocoa_close

It is now done in _finalize.

Fix regression introduced by
"gl/window: create the main loop/context on init/finalize"
bc7a7259f3
This commit is contained in:
Julien Isorce 2015-03-14 07:49:14 +00:00 committed by Tim-Philipp Müller
parent a51680b1b3
commit d3b3887c52

View file

@ -201,12 +201,7 @@ gst_gl_window_cocoa_open (GstGLWindow *window, GError **err)
static void
gst_gl_window_cocoa_close (GstGLWindow *window)
{
GstGLWindowCocoa *window_cocoa;
window_cocoa = GST_GL_WINDOW_COCOA (window);
g_main_loop_unref (window_cocoa->priv->loop);
g_main_context_unref (window_cocoa->priv->main_context);
GstGLWindowCocoa *window_cocoa = GST_GL_WINDOW_COCOA (window);
[window_cocoa->priv->internal_win_id release];
window_cocoa->priv->internal_win_id = nil;