aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-folder-utils.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 024e6b44b1..1628c654a4 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-29 Arunprakash <arunp@novell.com>
+
+ * mail/em-folder-utils.c (em_folder_utils_delete_folder) : Allocated
+ a new string to be used for the error dialog response to avoid
+ multiple frees.
+
2005-08-01 Shakti Sen <shprasad@novell.com>
* em-composer-prefs.c: Included 'gtkentry.h' to resolve the
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index ee3bcd006e..ca8299361c 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -481,7 +481,7 @@ em_folder_utils_delete_folder (CamelFolder *folder)
dialog = e_error_new(NULL,
(folder->parent_store && CAMEL_IS_VEE_STORE(folder->parent_store))?"mail:ask-delete-vfolder":"mail:ask-delete-folder",
folder->full_name, NULL);
- g_object_set_data_full ((GObject *) dialog, "full_name", folder->full_name, g_free);
+ g_object_set_data_full ((GObject *) dialog, "full_name", g_strdup (folder->full_name), g_free);
g_object_set_data_full ((GObject *) dialog, "store", folder->parent_store, camel_object_unref);
g_signal_connect (dialog, "response", G_CALLBACK (emfu_delete_response), NULL);
gtk_widget_show (dialog);