Fix bug #167577, that leaks a seperator. Patch from Paolo Borelli

2005-02-16  Glynn Foster  <glynn.foster@sun.com>

	* src/fileselection.c, THANKS, src/about.c: Fix bug
	#167577, that leaks a seperator. Patch from
	Paolo Borelli <pborelli@katamail.com>
This commit is contained in:
Glynn Foster 2005-02-16 10:28:11 +00:00 committed by Glynn Foster
parent 1bf063f495
commit a197b56c07
4 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-02-16 Glynn Foster <glynn.foster@sun.com>
* src/fileselection.c, THANKS, src/about.c: Fix bug
#167577, that leaks a seperator. Patch from
Paolo Borelli <pborelli@katamail.com>
2005-02-08 Glynn Foster <glynn.foster@sun.com>
* configure.in: Post release bump.

1
THANKS
View File

@ -9,6 +9,7 @@
"Peter Astrand <astrand lysator liu se>",
"Jonathan Blandford <jrb redhat com>",
"Paul Bolle <pebolle tiscali nl>",
"Paolo Borelli <pborelli katamail com>",
"Leonardo Boshell <p kapcoweb com>",
"Ross Burton <ross burtonini com>",
"Damien Carbery <damien carbery sun com>",

View File

@ -57,6 +57,7 @@ static const gchar *author_credits[] = {
"Peter Astrand <astrand lysator liu se>",
"Jonathan Blandford <jrb redhat com>",
"Paul Bolle <pebolle tiscali nl>",
"Paolo Borelli <pborelli katamail com>",
"Leonardo Boshell <p kapcoweb com>",
"Ross Burton <ross burtonini com>",
"Damien Carbery <damien carbery sun com>",

View File

@ -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: