mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
window: Plug a GList leak
We need to free the GList manually when using g_list_remove_link().
This commit is contained in:
parent
69250371b0
commit
8f734b01b2
@ -9354,6 +9354,7 @@ gtk_window_update_pointer_focus_on_state_change (GtkWindow *window,
|
||||
/* Unmapping the toplevel, remove pointer focus */
|
||||
priv->foci = g_list_remove_link (priv->foci, cur);
|
||||
gtk_pointer_focus_unref (focus);
|
||||
g_list_free (cur);
|
||||
}
|
||||
else if (focus->target == widget ||
|
||||
gtk_widget_is_ancestor (focus->target, widget))
|
||||
|
Loading…
Reference in New Issue
Block a user