From 326b8763deaa5f1391c0d57c4000b5a2c19fcf1a Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 7 Apr 2017 10:30:09 +0100 Subject: [PATCH] glcontext: fix display leak https://bugzilla.gnome.org/show_bug.cgi?id=781019 --- gst-libs/gst/gl/egl/gstglcontext_egl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c index 8d7254905a..a8cf2f8891 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -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; }