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 | 147112ed71db1db34c1003a4f1c259ef9175d31f (patch) | |
tree | 85b0bb0f5f807df2018260fe0eba65c1dcab9a0b /mixgtk | |
parent | 1aac60c9ab82280cf73770444d23843adec39b04 (diff) | |
download | mdk-147112ed71db1db34c1003a4f1c259ef9175d31f.tar.gz mdk-147112ed71db1db34c1003a4f1c259ef9175d31f.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 |