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 Tim-Philipp Müller
parent 697cd40ee4
commit 326b8763de

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