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:
@ -11052,6 +11052,9 @@ gtk_widget_dispose (GObject *object)
|
|||||||
|
|
||||||
g_clear_object (&priv->muxer);
|
g_clear_object (&priv->muxer);
|
||||||
|
|
||||||
|
g_list_free (priv->attached_windows);
|
||||||
|
priv->attached_windows = NULL;
|
||||||
|
|
||||||
G_OBJECT_CLASS (gtk_widget_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gtk_widget_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user