From 112b82c1795e93327ca6b4a1dbd127832c4b0079 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 9 Dec 2016 14:45:45 -0200 Subject: [PATCH] utils: add utility to unref datetimes --- src/gcal-utils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gcal-utils.h b/src/gcal-utils.h index 07bbce1b..484b3aef 100644 --- a/src/gcal-utils.h +++ b/src/gcal-utils.h @@ -31,6 +31,8 @@ #define MINUTES_PER_DAY 1440 #define MAX_MINUTES (7 * MINUTES_PER_DAY) +#define gcal_clear_datetime(dt) g_clear_pointer (dt, g_date_time_unref) + typedef enum { GCAL_WINDOW_VIEW_DAY,