Commit 117c86d0 authored by Matthias Clasen's avatar Matthias Clasen

Clear list of attached windows when disposing a widget

We were silently relying on everybody to detach their windows,
and would leak memory otherwise.
parent fb08a26a
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment