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:
Olivier Crete 2015-04-27 20:31:50 -04:00 committed by Víctor Manuel Jáquez Leal
parent af8ea3701e
commit 4091e86ab6

View file

@ -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);