From caffb60065217e4ddde35eae044c1c882a845793 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 8 Nov 2017 23:25:59 -0200 Subject: [PATCH] utils: add autoptr support for ESource --- src/gcal-utils.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gcal-utils.h b/src/gcal-utils.h index 1ed75471..3b5bd9ac 100644 --- a/src/gcal-utils.h +++ b/src/gcal-utils.h @@ -34,6 +34,9 @@ #define gcal_clear_datetime(dt) g_clear_pointer (dt, g_date_time_unref) #define gcal_clear_timeout(pp) { if (pp && *pp) { g_source_remove (*pp); *pp = 0; } } +/* Add autoptr support for libecal */ +G_DEFINE_AUTOPTR_CLEANUP_FUNC (ESource, g_object_unref) + /** * GcalWindowViewType: * @GCAL_WINDOW_VIEW_DAY: Day view (not implemented)