diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-06-15 15:02:18 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-06-15 15:02:18 +0000 |
commit | c443fd3cb08ea7665522ca23bd26ef2c60284015 (patch) | |
tree | 855a6d6827505710e9b9d29987b377c4bdd59b38 /mixgtk | |
parent | bba228f449d3c2be98cb4a0c16bfdc6673f89eb6 (diff) | |
download | mdk-c443fd3cb08ea7665522ca23bd26ef2c60284015.tar.gz mdk-c443fd3cb08ea7665522ca23bd26ef2c60284015.tar.bz2 |
bug corrected
Diffstat (limited to 'mixgtk')
-rw-r--r-- | mixgtk/mixgtk_gen_handlers.c | 6 |
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 |