summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2017-04-07 10:24:19 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-04-09 11:16:48 +0300
commit884e4b78105db30c21a0bea96cc666252140ee37 (patch)
tree98db7526a3e8609b4545eabb06cad0e2f76cfe7c /gst-libs
parent9eab67a4af6183a2305cb23beeb0e6b78e9c3e21 (diff)
downloadgstreamer-plugins-bad-884e4b78105db30c21a0bea96cc666252140ee37.tar.gz
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
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/gl/gstgldisplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c
index 299eca63c..54a135d92 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);