From f1f97ce865d29370b45ce08380cd56ab24f26a78 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 5 Feb 2001 05:04:53 +0000 Subject: When we drop a fake node, dont skip checking the next in the list. 2001-02-02 Not Zed * camel-folder-thread.c (camel_folder_thread_messages_new): When we drop a fake node, dont skip checking the next in the list. (camel_folder_thread_messages_new): Add an assertion check just to make sure we dont get any pseudo nodes, and spit a warning if we do. svn path=/trunk/; revision=7965 --- camel/camel-folder-thread.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'camel/camel-folder-thread.c') diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c index 8f55452c98..af8872c619 100644 --- a/camel/camel-folder-thread.c +++ b/camel/camel-folder-thread.c @@ -554,13 +554,20 @@ camel_folder_thread_messages_new(CamelFolder *folder, GPtrArray *uids) scan->next = newtop->next; /* and link the now 'real' node into the list */ newtop->next = child->next; - c = newtop->next; + c = newtop; e_memchunk_free(thread->node_chunks, child); } else { c = child; } } + /* this is only debug assertion stuff */ + c = (CamelFolderThreadNode *)&head; + while (c->next) { + c = c->next; + if (c->message == NULL) + g_warning("threading missed removing a pseudo node: %s\n", c->root_subject); + } thread->tree = head; -- cgit v1.2.3