gldisplay: fix GThread leak

https://bugzilla.gnome.org/show_bug.cgi?id=746541
This commit is contained in:
Julien Isorce 2015-03-22 19:03:19 +01:00
parent 0719c8c766
commit d35e3b8481

View file

@ -453,6 +453,7 @@ gst_gl_display_add_context (GstGLDisplay * display, GstGLContext * context)
thread = gst_gl_context_get_thread (context);
if (thread) {
collision = _get_gl_context_for_thread_unlocked (display, thread);
g_thread_unref (thread);
if (_check_collision (context, collision)) {
ret = FALSE;
goto out;