[evolution-data-server] Revert camel-folder-thread.c part from the previous commit



commit 7358eaa541f18d2fa2baa3499b8beb2145c00720
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]