mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
wayland: don't leak the registry proxy
Release the registry proxy when closing the display. https://bugzilla.gnome.org/show_bug.cgi?id=748564
This commit is contained in:
parent
af8ea3701e
commit
4091e86ab6
1 changed files with 5 additions and 0 deletions
|
@ -246,6 +246,11 @@ gst_vaapi_display_wayland_close_display (GstVaapiDisplay * display)
|
|||
priv->compositor = NULL;
|
||||
}
|
||||
|
||||
if (priv->registry) {
|
||||
wl_registry_destroy (priv->registry);
|
||||
priv->registry = NULL;
|
||||
}
|
||||
|
||||
if (priv->wl_display) {
|
||||
if (!priv->use_foreign_display)
|
||||
wl_display_disconnect (priv->wl_display);
|
||||
|
|
Loading…
Reference in a new issue