summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.com>2015-04-27 20:31:50 -0400
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2015-04-28 10:36:08 +0200
commit4091e86ab6ec25deb8bfa38ddb716731e59131db (patch)
tree94d6864b992ed5463792a70850cc7e74211f83fb /gst-libs
parentaf8ea3701e9b747460a60743a36b17cdf6b908d0 (diff)
wayland: don't leak the registry proxy
Release the registry proxy when closing the display. https://bugzilla.gnome.org/show_bug.cgi?id=748564
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay_wayland.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_wayland.c b/gst-libs/gst/vaapi/gstvaapidisplay_wayland.c
index 090965ea..71c4909c 100644
--- a/gst-libs/gst/vaapi/gstvaapidisplay_wayland.c
+++ b/gst-libs/gst/vaapi/gstvaapidisplay_wayland.c
@@ -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);