gldisplay: fix list leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 7 Apr 2017 09:24:19 +0000 (10:24 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 8 May 2017 16:05:09 +0000 (18:05 +0200)
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

index c0942a7bbb4869583880abe7c1bbf3ed759e2475..6e451b2a5fca287984c81497e26e71e9e27baf3e 100644 (file)
@@ -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);