summaryrefslogtreecommitdiff
path: root/src/fileselection.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2005-02-16 10:28:11 +0000
committerGlynn Foster <gman@src.gnome.org>2005-02-16 10:28:11 +0000
commita197b56c07a7ae337901ffe3f3d404fe840480f7 (patch)
treeadc9c6c8609ad9c5d7ff10bd7f5321f5d2c94edb /src/fileselection.c
parent1bf063f49567bb06020039fa55ba917530bc3de4 (diff)
downloadzenity-a197b56c07a7ae337901ffe3f3d404fe840480f7.tar.gz
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>
Diffstat (limited to 'src/fileselection.c')
-rw-r--r--src/fileselection.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fileselection.c b/src/fileselection.c
index 4d50fb7..6930437 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: