mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
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:
parent
fb08a26acd
commit
117c86d08a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user