mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
wayland: fix memory leak of display resources.
This commit is contained in:
parent
bbd7a130e2
commit
7793250607
1 changed files with 10 additions and 0 deletions
|
@ -237,6 +237,16 @@ gst_vaapi_display_wayland_close_display(GstVaapiDisplay * display)
|
|||
GstVaapiDisplayWaylandPrivate * const priv =
|
||||
GST_VAAPI_DISPLAY_WAYLAND_GET_PRIVATE(display);
|
||||
|
||||
if (priv->output) {
|
||||
wl_output_destroy(priv->output);
|
||||
priv->output = NULL;
|
||||
}
|
||||
|
||||
if (priv->shell) {
|
||||
wl_shell_destroy(priv->shell);
|
||||
priv->shell = NULL;
|
||||
}
|
||||
|
||||
if (priv->compositor) {
|
||||
wl_compositor_destroy(priv->compositor);
|
||||
priv->compositor = NULL;
|
||||
|
|
Loading…
Reference in a new issue