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 committed by Tim-Philipp Müller
parent 1af4a1f759
commit a71d479cc3

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;