evolution/evolution-prevent-crash-on-folder-rename.patch
Dominique Leuenberger 2de28c3f59 Accepting request 154964 from home:badshah400:branches:GNOME:Factory
Add post-3.6.3 patches from upstream git to fix important bugs, including a couple of crashes. Build tested locally for openSUSE:Factory.

OBS-URL: https://build.opensuse.org/request/show/154964
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/evolution?expand=0&rev=194
2013-02-14 12:13:32 +00:00

33 lines
910 B
Diff

From 0559de901e376c897515d684b357e6d9566f3b89 Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Tue, 29 Jan 2013 15:52:45 +0000
Subject: Bug #692777 - Crash on folder rename
---
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 24a46ed..bad33f5 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -685,9 +685,6 @@ mail_backend_folder_renamed_cb (MailFolderCache *folder_cache,
g_list_free_full (list, (GDestroyNotify) g_object_unref);
- g_free (old_uri);
- g_free (new_uri);
-
/* Rename GalView files. */
for (ii = 0; ii < G_N_ELEMENTS (cachenames); ii++) {
@@ -704,6 +701,9 @@ mail_backend_folder_renamed_cb (MailFolderCache *folder_cache,
g_free (newname);
}
+ g_free (old_uri);
+ g_free (new_uri);
+
/* This does something completely different.
* XXX Make it a separate signal handler? */
mail_filter_rename_folder (
--
cgit v0.9.0.2