diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2021-10-08 19:08:48 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2021-10-08 19:21:42 +0200 |
commit | 5fee824c6786ef7dc348c2576dd344b79a69f55c (patch) | |
tree | 6daaa4aae25aece010c8483b37aadc4dc5cf72ec | |
parent | 568daf9a9416e0aad20093fc7250ed955fe0938f (diff) | |
download | gnome-todo-5fee824c6786ef7dc348c2576dd344b79a69f55c.tar.gz |
todo: Fix some leaky GDateTimes
All of these are marked `(transfer full)`, so we should be unreffing
them later onwards.
-rw-r--r-- | src/plugins/todo-txt/gtd-provider-todo-txt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/todo-txt/gtd-provider-todo-txt.c b/src/plugins/todo-txt/gtd-provider-todo-txt.c index c3694d21..532b53de 100644 --- a/src/plugins/todo-txt/gtd-provider-todo-txt.c +++ b/src/plugins/todo-txt/gtd-provider-todo-txt.c @@ -87,9 +87,9 @@ print_task (GString *output, GtdTask *task) { GtdTaskList *list; - GDateTime *dt; - GDateTime *completion_dt; - GDateTime *creation_dt; + g_autoptr (GDateTime) dt = NULL; + g_autoptr (GDateTime) completion_dt = NULL; + g_autoptr (GDateTime) creation_dt = NULL; const gchar *description; gint depth; gboolean is_complete; |