aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorArunprakash <arunp@novell.com>2005-08-03 19:15:31 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-03 19:15:31 +0800
commit1927d6ff5965a67f8c34c13ec22bcbe952617c91 (patch)
tree04c41e2429960567d566d3b45d997ec87346ee2f /mail
parent6502cc080fd6e6de0d974b64c43809cbd54d0edc (diff)
downloadgsoc2013-evolution-1927d6ff5965a67f8c34c13ec22bcbe952617c91.tar
gsoc2013-evolution-1927d6ff5965a67f8c34c13ec22bcbe952617c91.tar.gz
gsoc2013-evolution-1927d6ff5965a67f8c34c13ec22bcbe952617c91.tar.bz2
gsoc2013-evolution-1927d6ff5965a67f8c34c13ec22bcbe952617c91.tar.lz
gsoc2013-evolution-1927d6ff5965a67f8c34c13ec22bcbe952617c91.tar.xz
gsoc2013-evolution-1927d6ff5965a67f8c34c13ec22bcbe952617c91.tar.zst
gsoc2013-evolution-1927d6ff5965a67f8c34c13ec22bcbe952617c91.zip
Allocated a new string to be used for the error dialog response to avoid
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. svn path=/trunk/; revision=29970
Diffstat (limited to 'mail')
-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);