diff options
-rw-r--r-- | src/core/gcal-calendar-monitor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/gcal-calendar-monitor.c b/src/core/gcal-calendar-monitor.c index 0c82d40b..6f08add2 100644 --- a/src/core/gcal-calendar-monitor.c +++ b/src/core/gcal-calendar-monitor.c @@ -1022,8 +1022,12 @@ remove_all_events (GcalCalendarMonitor *self) g_hash_table_iter_init (&iter, self->shared.events); while (g_hash_table_iter_next (&iter, NULL, (gpointer*) &event)) { + g_object_ref (event); + g_hash_table_iter_remove (&iter); g_signal_emit (self, signals[EVENT_REMOVED], 0, event); + + g_object_unref (event); } } |