gldisplay: fix list leak

Windows aren't always removed in time, and it turns out to be
very, very hard to remove a window in a way that's not racy and
not deadlocky. Since the window itself doesn't leak, freeing
the list on object destruction is enough.

https://bugzilla.gnome.org/show_bug.cgi?id=781018
This commit is contained in:
Vincent Penquerc'h 2017-04-07 10:24:19 +01:00 committed by Tim-Philipp Müller
parent 920d295c97
commit 697cd40ee4

View file

@ -251,6 +251,7 @@ gst_gl_display_finalize (GObject * object)
g_free (l->data); g_free (l->data);
} }
g_list_free (display->windows);
g_list_free (display->priv->contexts); g_list_free (display->priv->contexts);
g_cond_clear (&display->priv->thread_cond); g_cond_clear (&display->priv->thread_cond);