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:
@@ -1172,8 +1172,8 @@ remove_events_from_timeline_in_idle_cb (gpointer user_data)
|
|||||||
|
|
||||||
for (guint i = 0; i < event_ids->len; i++)
|
for (guint i = 0; i < event_ids->len; i++)
|
||||||
{
|
{
|
||||||
g_autoptr (GcalEvent) event = NULL;
|
|
||||||
const gchar *event_id;
|
const gchar *event_id;
|
||||||
|
GcalEvent *event;
|
||||||
|
|
||||||
event_id = g_ptr_array_index (event_ids, i);
|
event_id = g_ptr_array_index (event_ids, i);
|
||||||
event = g_hash_table_lookup (self->shared.events, event_id);
|
event = g_hash_table_lookup (self->shared.events, event_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user