1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 11:35:32 +00:00

calls-call-record-row: Ref the returned contact

calls_contacts_lookup_phone_number is transfer-none
This commit is contained in:
Guido Günther 2020-06-05 13:45:50 +02:00
parent fb73046e71
commit 09cbdf4181

View file

@ -381,6 +381,7 @@ setup_contact (CallsCallRecordRow *self)
self->contact = calls_contacts_lookup_phone_number
(self->contacts, phone_number);
g_assert (self->contact != NULL);
g_object_ref (self->contact);
g_clear_object (&self->contacts);
e_phone_number_free (phone_number);