[741/906] wayland: Don't leak main context and loop

This commit is contained in:
Sebastian Dröge 2013-07-11 21:17:42 +02:00 committed by Matthew Waters
parent 7fffd9097e
commit f36ee81a84

View file

@ -215,6 +215,13 @@ destroy_surface (GstGLWindowWaylandEGL * window_egl)
if (window_egl->window.callback)
wl_callback_destroy (window_egl->window.callback);
g_source_destroy (window_egl->wl_source);
g_source_unref (window_egl->wl_source);
window_egl->wl_source = NULL;
g_main_loop_unref (window_egl->loop);
window_egl->loop = NULL, g_main_context_unref (window_egl->main_context);
window_egl->main_context = NULL;
}
static void