mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
gldisplay: fix GThread leak
https://bugzilla.gnome.org/show_bug.cgi?id=746541
This commit is contained in:
parent
0719c8c766
commit
d35e3b8481
1 changed files with 1 additions and 0 deletions
|
@ -453,6 +453,7 @@ gst_gl_display_add_context (GstGLDisplay * display, GstGLContext * context)
|
||||||
thread = gst_gl_context_get_thread (context);
|
thread = gst_gl_context_get_thread (context);
|
||||||
if (thread) {
|
if (thread) {
|
||||||
collision = _get_gl_context_for_thread_unlocked (display, thread);
|
collision = _get_gl_context_for_thread_unlocked (display, thread);
|
||||||
|
g_thread_unref (thread);
|
||||||
if (_check_collision (context, collision)) {
|
if (_check_collision (context, collision)) {
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue