calendar: Fix double unref

This commit is contained in:
Georges Basile Stavracas Neto
2019-05-04 12:05:39 -03:00
parent 1a5ff545a2
commit 64fa11f4c0
+3 -3
View File
@@ -181,14 +181,14 @@ gcal_calendar_initable_init (GInitable *initable,
GCAL_RETURN (FALSE);
}
g_assert (E_IS_CAL_CLIENT (client));
self->client = E_CAL_CLIENT (client);
self->readonly_changed_handler_id = g_signal_connect (client,
"notify::readonly",
G_CALLBACK (on_client_readonly_changed_cb),
self);
g_assert (E_IS_CAL_CLIENT (client));
self->client = (ECalClient*) g_steal_pointer (&client);
GCAL_RETURN (TRUE);
}