[evolution-data-server/gnome-3-16] Revert camel-folder-thread.c part from the previous commit
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-16] Revert camel-folder-thread.c part from the previous commit
- Date: Thu, 23 Apr 2015 16:23:35 +0000 (UTC)
commit 6b29e992e1e16896145c137614b9f93ea43b726e
Author: Milan Crha <mcrha redhat com>
Date: Thu Apr 23 18:20:11 2015 +0200
Revert camel-folder-thread.c part from the previous commit
It was causing use-after-free, spotted when deleting messages.
camel/camel-folder-thread.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c
index 6caf946..af516e7 100644
--- a/camel/camel-folder-thread.c
+++ b/camel/camel-folder-thread.c
@@ -718,8 +718,6 @@ camel_folder_thread_messages_apply (CamelFolderThread *thread,
thread->node_chunks = camel_memchunk_new (32, sizeof (CamelFolderThreadNode));
thread_summary (thread, all);
- for (i = 0; i < thread->summary->len; i++)
- camel_message_info_unref (thread->summary->pdata[i]);
g_ptr_array_free (thread->summary, TRUE);
thread->summary = all;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]