gst-plugins-base: gl: wayland: cleanup on close
authorRouven Czerwinski <r.czerwinski@pengutronix.de>
Thu, 6 Apr 2023 05:58:03 +0000 (07:58 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 6 Apr 2023 11:16:58 +0000 (12:16 +0100)
commit1ff0e6d30510610c437241e1fa3bfc5006debe39
treec18c2717254670ef8920ca5ebd99a60855bae887
parent1ba677abda931cb56281c59ac38acb010e25cdc4
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/4355>
subprojects/gst-plugins-base/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c