talons

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

commit 84455a6c078eec07c3c5b937c0636be65a8d11d6
parent 03d035f2e8ee01c90c47b0b5cdf6f7a4ebcd1356
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-2020 the Claws Mail team and Colin Leroy + * 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 @@ -923,6 +923,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();