diff --git a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c index 054dcf4327..6760ecea36 100644 --- a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c +++ b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c @@ -130,6 +130,7 @@ gst_gl_display_wayland_new (const gchar * name) } else { GST_INFO ("Failed to open Wayland display connection."); } + gst_object_unref (ret); return NULL; }