aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-19 20:33:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-19 20:36:55 +0800
commit209387d4e37fe665c385ef56886b119f7896890f (patch)
tree924fcf252cb2e3e6336a8f6fb7e70ec118cd64a3
parentabf8270cd62bb456420788eea40ded0f834d7b55 (diff)
downloadgsoc2013-evolution-209387d4e37fe665c385ef56886b119f7896890f.tar.gz
gsoc2013-evolution-209387d4e37fe665c385ef56886b119f7896890f.tar.zst
gsoc2013-evolution-209387d4e37fe665c385ef56886b119f7896890f.zip
MailFolderCache: Fix a crash when renaming folders.
-rw-r--r--libemail-engine/mail-folder-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c
index c31e7a18a8..d536f6dabb 100644
--- a/libemail-engine/mail-folder-cache.c
+++ b/libemail-engine/mail-folder-cache.c
@@ -1111,7 +1111,7 @@ rename_folders (MailFolderCache *cache,
old = g_strdup_printf ("%s%s", oldbase, fi->full_name + strlen (newbase));
old_folder_info = store_info_steal_folder_info (store_info, old);
if (old_folder_info != NULL) {
- up->oldfull = old_folder_info->full_name;
+ up->oldfull = g_strdup (old_folder_info->full_name);
up->signal_id = signals[FOLDER_RENAMED];
folder_info_unref (old_folder_info);
}