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 8d510df13e6aefc169b614df5fa73d773aa387af..06fea7ee1291161a407ba568d3200912a4e7eda1 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 464df2f2f5ec893c15096c5e6d2dbba4c0f2ee8f..732260989402f61355c90c6ddad0bb48bb85be88 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 aace5d56ddf1c7b545f3e60638ca83af478ce77e..540a86f45a16c46ea7ba19e21864ae4f5ae9774f 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;