mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
gst-plugins-base: gl: wayland: cleanup on close
The proxy and queue are created in the gst_gl_window_wayland_egl_open() function and will be recreated on open. This leaks both objects, the wayland client documentation mentions that they should be destroyed using the appropriate destroy functions. Found during valgrind memory leak testing, these blocks were marked as definitely lost. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4354>
This commit is contained in:
parent
1b762ba012
commit
7ad84674ab
1 changed files with 3 additions and 0 deletions
|
@ -478,6 +478,9 @@ gst_gl_window_wayland_egl_close (GstGLWindow * gl_window)
|
|||
g_source_unref (window_egl->wl_source);
|
||||
window_egl->wl_source = NULL;
|
||||
|
||||
wl_proxy_wrapper_destroy (window_egl->display.display);
|
||||
wl_event_queue_destroy (window_egl->window.queue);
|
||||
|
||||
GST_GL_WINDOW_CLASS (parent_class)->close (gl_window);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue