From a197b56c07a7ae337901ffe3f3d404fe840480f7 Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Wed, 16 Feb 2005 10:28:11 +0000 Subject: Fix bug #167577, that leaks a seperator. Patch from Paolo Borelli 2005-02-16 Glynn Foster * src/fileselection.c, THANKS, src/about.c: Fix bug #167577, that leaks a seperator. Patch from Paolo Borelli --- ChangeLog | 6 ++++++ THANKS | 1 + src/about.c | 1 + src/fileselection.c | 5 +---- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5bb516b..42b98f15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-02-16 Glynn Foster + + * src/fileselection.c, THANKS, src/about.c: Fix bug + #167577, that leaks a seperator. Patch from + Paolo Borelli + 2005-02-08 Glynn Foster * configure.in: Post release bump. diff --git a/THANKS b/THANKS index 5310ea4d..65e9082a 100644 --- a/THANKS +++ b/THANKS @@ -9,6 +9,7 @@ "Peter Astrand ", "Jonathan Blandford ", "Paul Bolle ", + "Paolo Borelli ", "Leonardo Boshell

", "Ross Burton ", "Damien Carbery ", diff --git a/src/about.c b/src/about.c index afcdec13..a849f864 100644 --- a/src/about.c +++ b/src/about.c @@ -57,6 +57,7 @@ static const gchar *author_credits[] = { "Peter Astrand ", "Jonathan Blandford ", "Paul Bolle ", + "Paolo Borelli ", "Leonardo Boshell

", "Ross Burton ", "Damien Carbery ", diff --git a/src/fileselection.c b/src/fileselection.c index 4d50fb76..69304374 100644 --- a/src/fileselection.c +++ b/src/fileselection.c @@ -85,7 +85,6 @@ zenity_fileselection_dialog_response (GtkWidget *widget, int response, gpointer { ZenityFileData *file_data = data; GSList *selections, *iter; - gchar *separator = g_strdup(file_data->separator); int i; switch (response) { @@ -96,12 +95,10 @@ zenity_fileselection_dialog_response (GtkWidget *widget, int response, gpointer g_print ("%s", g_filename_to_utf8 ((gchar*)iter->data, -1, NULL, NULL, NULL)); g_free (iter->data); if (iter->next != NULL) - g_print ("%s",separator); + g_print ("%s",file_data->separator); } g_print("\n"); g_slist_free(selections); - g_free(separator); - break; case GTK_RESPONSE_CANCEL: -- cgit