From a65a370317de4fe56eeee736c5fb1a2052a800ed Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 1 Apr 2020 19:40:39 -0300 Subject: [PATCH] time-zone-monitor: Clear GTimeZone with g_time_zone_unref GTimeZone is not an object, and it cannot be cleared with g_clear_object(). --- src/core/gcal-time-zone-monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gcal-time-zone-monitor.c b/src/core/gcal-time-zone-monitor.c index f5bdaef9..26325e01 100644 --- a/src/core/gcal-time-zone-monitor.c +++ b/src/core/gcal-time-zone-monitor.c @@ -1,6 +1,6 @@ /* gcal-time-zone-monitor.c * - * Copyright 2019 Georges Basile Stavracas Neto + * Copyright 2019-2020 Georges Basile Stavracas Neto * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -88,8 +88,8 @@ gcal_time_zone_monitor_finalize (GObject *object) { GcalTimeZoneMonitor *self = (GcalTimeZoneMonitor *)object; + g_clear_pointer (&self->timezone, g_time_zone_unref); g_clear_object (&self->timedate1_proxy); - g_clear_object (&self->timezone); G_OBJECT_CLASS (gcal_time_zone_monitor_parent_class)->finalize (object); }