From cb0fac73a5ef2704f0e7cfb11a0436feaa4f57f4 Mon Sep 17 00:00:00 2001 From: Garrett Regier Date: Sun, 16 Jan 2011 19:47:34 -0800 Subject: [PATCH] Fix memory leak in gtk_window_group_list_windows --- gtk/gtkwindow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index ca0ad9590a..a5840a2531 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -8358,6 +8358,8 @@ gtk_window_group_list_windows (GtkWindowGroup *window_group) group_windows = g_list_prepend (group_windows, window); } + g_list_free (toplevels); + return g_list_reverse (group_windows); }