[gtk+] Fix memory leak in gtk_window_group_list_windows



commit cb0fac73a5ef2704f0e7cfb11a0436feaa4f57f4
Author: Garrett Regier <alias301 gmail com>
Date:   Sun Jan 16 19:47:34 2011 -0800

    Fix memory leak in gtk_window_group_list_windows

 gtk/gtkwindow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index ca0ad95..a5840a2 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]