summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-06-15 15:02:18 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-06-15 15:02:18 +0000
commit147112ed71db1db34c1003a4f1c259ef9175d31f (patch)
tree85b0bb0f5f807df2018260fe0eba65c1dcab9a0b
parent1aac60c9ab82280cf73770444d23843adec39b04 (diff)
downloadmdk-147112ed71db1db34c1003a4f1c259ef9175d31f.tar.gz
mdk-147112ed71db1db34c1003a4f1c259ef9175d31f.tar.bz2
bug corrected
-rw-r--r--mixgtk/mixgtk_gen_handlers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mixgtk/mixgtk_gen_handlers.c b/mixgtk/mixgtk_gen_handlers.c
index f52969d..983c16c 100644
--- a/mixgtk/mixgtk_gen_handlers.c
+++ b/mixgtk/mixgtk_gen_handlers.c
@@ -33,9 +33,11 @@ static file_callback_t callback_ = NULL;
static void
on_file_ok_ (GtkWidget *w, gpointer fs)
{
- const gchar *file = gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs));
- if (callback_) callback_ (file);
+ gchar *file = g_strdup
+ (gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs)));
gtk_widget_destroy (GTK_WIDGET (fs));
+ if (callback_) callback_ (file);
+ g_free (file);
}
static void