From 3a611edf84b769aa067d8de3c6a7447d482f1c1c Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 23 Oct 2015 11:20:22 +0100 Subject: [PATCH] fix bug 3375, 'Crash (SEGV) at gtkcmctree.c:4514 after deleting an unread message' Patch by Arthur Huillet. --- AUTHORS | 1 + src/gtk/authors.h | 1 + src/summaryview.c | 2 ++ 3 files changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index 8d510df13..06fea7ee1 100644 --- 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 diff --git a/src/gtk/authors.h b/src/gtk/authors.h index 464df2f2f..732260989 100644 --- a/src/gtk/authors.h +++ b/src/gtk/authors.h @@ -162,6 +162,7 @@ static char *CONTRIBS_LIST[] = { "Shawn Houston", "Michael Hughes", "Richard Hughes", +"Arthur Huillet", "Chideok Hwang", "John E.P. Hynes", "Hironori IWANE", diff --git a/src/summaryview.c b/src/summaryview.c index aace5d56d..540a86f45 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -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; -- 2.11.4.GIT