glcontext: fix display leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 7 Apr 2017 09:30:09 +0000 (10:30 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 9 Apr 2017 08:16:56 +0000 (11:16 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=781019

gst-libs/gst/gl/egl/gstglcontext_egl.c

index 8d72549..a8cf2f8 100644 (file)
@@ -312,6 +312,7 @@ gst_gl_context_egl_create_context (GstGLContext * context,
       g_set_error (error, GST_GL_CONTEXT_ERROR,
           GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE,
           "Failed to create EGLDisplay from native display");
+      gst_object_unref (display);
       goto failure;
     }