From a71d479cc3c2eba3c8fa528ca333581376beac1a Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Sun, 22 Mar 2015 19:03:19 +0100 Subject: [PATCH] gldisplay: fix GThread leak https://bugzilla.gnome.org/show_bug.cgi?id=746541 --- gst-libs/gst/gl/gstgldisplay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index 6eb968d385..50d53ccb6c 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -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;