summaryrefslogtreecommitdiff
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-05-08 18:05:09 +0200
commite2a5fb79e02235bbcaa1818a814fafba9eda9ffd (patch)
tree42d70d1fb8c9e8c528301045aa33049f809e72eb
parent6b8b725e5086fe2300610e5f1e82920e67443481 (diff)
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
-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 c0942a7bb..6e451b2a5 100644
--- a/gst-libs/gst/gl/gstgldisplay.c
+++ b/gst-libs/gst/gl/gstgldisplay.c
@@ -162,6 +162,7 @@ gst_gl_display_finalize (GObject * object)
g_free (l->data);
}
+ g_list_free (display->windows);
g_list_free (display->priv->contexts);
G_OBJECT_CLASS (gst_gl_display_parent_class)->finalize (object);