glcontext: fix display leak

https://bugzilla.gnome.org/show_bug.cgi?id=781019
This commit is contained in:
Vincent Penquerc'h 2017-04-07 10:30:09 +01:00 committed by Sebastian Dröge
parent 884e4b7810
commit 3fd5608e21

View 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;
}