[gnome-todo] gtd-panel-today: fix crash due g_list_free on NULL
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] gtd-panel-today: fix crash due g_list_free on NULL
- Date: Thu, 3 Nov 2016 15:58:49 +0000 (UTC)
commit f14b056b79e43f39517efe9795cfa89ba3a6e7e7
Author: Victor Toso <me victortoso com>
Date: Wed Nov 2 21:13:49 2016 +0100
gtd-panel-today: fix crash due g_list_free on NULL
https://bugzilla.gnome.org/show_bug.cgi?id=773860
plugins/today-panel/gtd-panel-today.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/today-panel/gtd-panel-today.c b/plugins/today-panel/gtd-panel-today.c
index d2bddf8..513a3ff 100644
--- a/plugins/today-panel/gtd-panel-today.c
+++ b/plugins/today-panel/gtd-panel-today.c
@@ -224,8 +224,7 @@ gtd_panel_today_finalize (GObject *object)
g_clear_object (&self->menu);
g_clear_pointer (&self->title, g_free);
-
- g_list_free (self->task_list);
+ g_clear_pointer (&self->task_list, g_list_free);
G_OBJECT_CLASS (gtd_panel_today_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]