summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2017-04-07 10:30:09 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-04-09 11:16:56 +0300
commit3fd5608e21642fbc07089d49da42b1ff57feb701 (patch)
tree54dffa044ab8c3a670953e0b29aad702ea0d4150
parent884e4b78105db30c21a0bea96cc666252140ee37 (diff)
glcontext: fix display leak
https://bugzilla.gnome.org/show_bug.cgi?id=781019
-rw-r--r--gst-libs/gst/gl/egl/gstglcontext_egl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c
index 8d7254905..a8cf2f889 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;
}