fix bug 3375, 'Crash (SEGV) at gtkcmctree.c:4514 after deleting an unread message'
authorPaul <paul@claws-mail.org>
Fri, 23 Oct 2015 10:20:22 +0000 (11:20 +0100)
committerPaul <paul@claws-mail.org>
Fri, 23 Oct 2015 10:20:22 +0000 (11:20 +0100)
Patch by Arthur Huillet.

AUTHORS
src/gtk/authors.h
src/summaryview.c

diff --git a/AUTHORS b/AUTHORS
index 8d510df..06fea7e 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -305,3 +305,4 @@ contributors (in addition to the above; based on Changelog)
        Richard Hughes
        Daniel Jakots
        Mikhail Kurinnoi
+       Arthur Huillet
index 464df2f..7322609 100644 (file)
@@ -162,6 +162,7 @@ static char *CONTRIBS_LIST[] = {
 "Shawn Houston",
 "Michael Hughes",
 "Richard Hughes",
+"Arthur Huillet",
 "Chideok Hwang",
 "John E.P. Hynes",
 "Hironori IWANE",
index aace5d5..540a86f 100644 (file)
@@ -3555,12 +3555,14 @@ static int msginfo_mark_as_read_timeout(void *data)
        if (!mdata)
                return FALSE;
 
+       summary_lock(mdata->summaryview);
        if (mdata->msginfo == summary_get_selected_msg(mdata->summaryview))
                msginfo_mark_as_read(mdata->summaryview, mdata->msginfo,
                                     mdata->summaryview->selected);
        procmsg_msginfo_free(mdata->msginfo);
 
        mdata->summaryview->mark_as_read_timeout_tag = 0;
+       summary_unlock(mdata->summaryview);
 
        g_free(mdata);
        return FALSE;