[gnome-calendar/wip/pandusonu/week-view] utils: add utility to unref datetimes



commit 112b82c1795e93327ca6b4a1dbd127832c4b0079
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Dec 9 14:45:45 2016 -0200

    utils: add utility to unref datetimes

 src/gcal-utils.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-utils.h b/src/gcal-utils.h
index 07bbce1..484b3ae 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]