mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
[739/906] x11: Don't leak main context and main loop
This commit is contained in:
parent
16a5316755
commit
c479544540
1 changed files with 9 additions and 0 deletions
|
@ -408,6 +408,15 @@ gst_gl_window_x11_close (GstGLWindow * window)
|
|||
GST_DEBUG ("display sender closed");
|
||||
}
|
||||
|
||||
g_source_destroy (window_x11->x11_source);
|
||||
g_source_unref (window_x11->x11_source);
|
||||
window_x11->x11_source = NULL;
|
||||
g_main_loop_unref (window_x11->loop);
|
||||
window_x11->loop = NULL, g_main_context_unref (window_x11->main_context);
|
||||
window_x11->main_context = NULL;
|
||||
|
||||
window_x11->running = FALSE;
|
||||
|
||||
GST_GL_WINDOW_UNLOCK (window_x11);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue