talons

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

commit b87fc3c418ffe815c2d2671e6ca1e826244ff36d
parent 54665f4fa85c2e54fbab965cc23e6be3ffa1c0e8
Author: paul <paul@claws-mail.org>
Date:   Wed, 19 Jan 2022 15:30:49 +0000

fix bug 4442, 'vcalendar segfault if in invitation email and switch to another folder'

Diffstat:
Msrc/plugins/vcalendar/vcalendar.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/vcalendar/vcalendar.c b/src/plugins/vcalendar/vcalendar.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2018 Colin Leroy and the Claws Mail team + * Copyright (C) 1999-2022 the Claws Mail team and Colin Leroy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -926,6 +926,8 @@ static gboolean vcalviewer_uribtn_cb(GtkButton *widget, gpointer data) void vcalendar_refresh_folder_contents(FolderItem *item) { + g_return_val_if_fail(item != NULL, NULL); + Folder *folder = folder_find_from_name (PLUGIN_NAME, vcal_folder_get_class()); if (folder && item->folder == folder) { MainWindow *mainwin = mainwindow_get_mainwindow();