[gnome-calendar/gnome-3-36] time-zone-monitor: Clear GTimeZone with g_time_zone_unref



commit f57c00b6a1a3a2877d6ee99d37f1c9c999d2052d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Apr 1 19:40:39 2020 -0300

    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 <georges stavracas gmail com>
+ * Copyright 2019-2020 Georges Basile Stavracas Neto <georges stavracas gmail com>
  *
  * 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);
 }


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