[evolution] MailFolderCache: Fix a crash when renaming folders.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] MailFolderCache: Fix a crash when renaming folders.
- Date: Fri, 19 Jul 2013 13:49:50 +0000 (UTC)
commit 209387d4e37fe665c385ef56886b119f7896890f
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jul 19 08:33:21 2013 -0400
MailFolderCache: Fix a crash when renaming folders.
libemail-engine/mail-folder-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c
index c31e7a1..d536f6d 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]