talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3a611edf84b769aa067d8de3c6a7447d482f1c1c
parent 9154e4ca6e1eeaaa3bd83f9d906dd348916f2ffa
Author: Paul <paul@claws-mail.org>
Date:   Fri, 23 Oct 2015 11:20:22 +0100

fix bug 3375, 'Crash (SEGV) at gtkcmctree.c:4514 after deleting an unread message'

Patch by Arthur Huillet.

Diffstat:
MAUTHORS | 1+
Msrc/gtk/authors.h | 1+
Msrc/summaryview.c | 2++
3 files changed, 4 insertions(+), 0 deletions(-)

diff --git 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 @@ -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 @@ -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;