From adb725eadcd7792ab96d1fbc21cae9f7aa357c3f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 11 Jun 2006 20:47:43 +0000 Subject: Do not leak the groups string vector. (#344607, John Finlay) 2006-06-11 Emmanuele Bassi * gtk/gtkrecentchooserdefault.c (get_is_recent_filtered): * gtk/gtkrecentchoosermenu.c (get_is_recent_filtered): Do not leak the groups string vector. (#344607, John Finlay) --- ChangeLog | 9 +++++++++ ChangeLog.pre-2-10 | 9 +++++++++ gtk/gtkrecentchooserdefault.c | 2 ++ gtk/gtkrecentchoosermenu.c | 2 ++ 4 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1d20a28e6..c5aefd337 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-06-11 Emmanuele Bassi + + * gtk/gtkrecentchooserdefault.c + (get_is_recent_filtered): + * gtk/gtkrecentchoosermenu.c + (get_is_recent_filtered): + Do not leak the groups string vector. (#344607, + John Finlay) + 2006-06-11 Tor Lillqvist * gtk/gtkprintoperation-win32.c: Fix MSVC build problem. (#339739, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1d20a28e6..c5aefd337 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,12 @@ +2006-06-11 Emmanuele Bassi + + * gtk/gtkrecentchooserdefault.c + (get_is_recent_filtered): + * gtk/gtkrecentchoosermenu.c + (get_is_recent_filtered): + Do not leak the groups string vector. (#344607, + John Finlay) + 2006-06-11 Tor Lillqvist * gtk/gtkprintoperation-win32.c: Fix MSVC build problem. (#339739, diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index e78a51817..3294d892a 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -1505,6 +1505,8 @@ get_is_recent_filtered (GtkRecentChooserDefault *impl, /* this we own */ if (filter_info.applications) g_strfreev ((gchar **) filter_info.applications); + if (filter_info.groups) + g_strfreev ((gchar **) filter_info.groups); return !retval; } diff --git a/gtk/gtkrecentchoosermenu.c b/gtk/gtkrecentchoosermenu.c index 6b87ce0a4..e831a9959 100644 --- a/gtk/gtkrecentchoosermenu.c +++ b/gtk/gtkrecentchoosermenu.c @@ -774,6 +774,8 @@ get_is_recent_filtered (GtkRecentChooserMenu *menu, /* this we own */ if (filter_info.applications) g_strfreev ((gchar **) filter_info.applications); + if (filter_info.groups) + g_strfreev ((gchar **) filter_info.groups); return !retval; } -- cgit v1.2.1