From 697cd40ee41818c42ea177f8fb7861399612d546 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 7 Apr 2017 10:24:19 +0100 Subject: [PATCH] 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 --- 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 299eca63c4..54a135d92d 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -251,6 +251,7 @@ gst_gl_display_finalize (GObject * object) g_free (l->data); } + g_list_free (display->windows); g_list_free (display->priv->contexts); g_cond_clear (&display->priv->thread_cond);