From 3b860ece2e6c0b8df9cca11f81e8f8bf344c35b5 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 26 Feb 2018 23:18:10 -0300 Subject: [PATCH] utils: add autoptr support to ECalComponent --- src/gcal-utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gcal-utils.h b/src/gcal-utils.h index 02f62ce8..af0cf594 100644 --- a/src/gcal-utils.h +++ b/src/gcal-utils.h @@ -35,6 +35,7 @@ #define gcal_clear_timeout(pp) { if (pp && *pp) { g_source_remove (*pp); *pp = 0; } } /* Add autoptr support for libecal */ +G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalComponent, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ESource, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (GWeatherLocation, gweather_location_unref)