mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
[741/906] wayland: Don't leak main context and loop
This commit is contained in:
parent
09795ef023
commit
d937a7e899
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue