gldisplay: fix GThread leak
authorJulien Isorce <j.isorce@samsung.com>
Sun, 22 Mar 2015 18:03:19 +0000 (19:03 +0100)
committerJulien Isorce <j.isorce@samsung.com>
Sun, 22 Mar 2015 18:03:19 +0000 (19:03 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=746541

gst-libs/gst/gl/gstgldisplay.c

index 6eb968d..50d53cc 100644 (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;