Clear list of attached windows when disposing a widget

We were silently relying on everybody to detach their windows,
and would leak memory otherwise.
This commit is contained in:
Matthias Clasen 2013-05-02 08:02:40 -04:00
parent fb08a26acd
commit 117c86d08a

View File

@ -11052,6 +11052,9 @@ gtk_widget_dispose (GObject *object)
g_clear_object (&priv->muxer);
g_list_free (priv->attached_windows);
priv->attached_windows = NULL;
G_OBJECT_CLASS (gtk_widget_parent_class)->dispose (object);
}