Commit 09cbdf41 authored by Guido Gunther's avatar Guido Gunther
Browse files

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

calls_contacts_lookup_phone_number is transfer-none
parent fb73046e
...@@ -381,6 +381,7 @@ setup_contact (CallsCallRecordRow *self) ...@@ -381,6 +381,7 @@ setup_contact (CallsCallRecordRow *self)
self->contact = calls_contacts_lookup_phone_number self->contact = calls_contacts_lookup_phone_number
(self->contacts, phone_number); (self->contacts, phone_number);
g_assert (self->contact != NULL); g_assert (self->contact != NULL);
g_object_ref (self->contact);
g_clear_object (&self->contacts); g_clear_object (&self->contacts);
e_phone_number_free (phone_number); e_phone_number_free (phone_number);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment