core/calendar-monitor: Remove g_autoptr from a variable

g_hash_table_lookup() is not transfer-full, so this g_autoptr + the
g_hash_table_remove() call end up double-unreffing the event, which
causes a crash.

Remove g_autoptr from the variable.
This commit is contained in:
Georges Basile Stavracas Neto
2023-09-13 17:51:34 -03:00
parent dd61f8ef6f
commit 439b46af89
+1 -1
View File
@@ -1172,8 +1172,8 @@ remove_events_from_timeline_in_idle_cb (gpointer user_data)
for (guint i = 0; i < event_ids->len; i++)
{
g_autoptr (GcalEvent) event = NULL;
const gchar *event_id;
GcalEvent *event;
event_id = g_ptr_array_index (event_ids, i);
event = g_hash_table_lookup (self->shared.events, event_id);