diff options
author | Timm Bäder <mail@baedert.org> | 2019-07-21 11:08:45 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2019-07-21 12:45:10 +0200 |
commit | 8f734b01b255ba59a23901aa82e7174d0394d78c (patch) | |
tree | 6d53fb4b9c094bf343703bc68102cc909a92c4b5 | |
parent | 69250371b0d8b20aef5aba1f466ffc7a1c916e1b (diff) | |
download | gtk+-8f734b01b255ba59a23901aa82e7174d0394d78c.tar.gz |
window: Plug a GList leak
We need to free the GList manually when using g_list_remove_link().
-rw-r--r-- | gtk/gtkwindow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 723d261127..5061f7e648 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -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)) |