From: Jose Dapena Paz Date: Fri, 21 Nov 2008 21:49:10 +0000 (+0000) Subject: * Fix behavior of check names for fremantle. X-Git-Tag: git_migration_finished~993 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=7b9ad54259c83315032c080f05c90366c24235d7;p=modest * Fix behavior of check names for fremantle. pmo-trunk-r6377 --- diff --git a/src/hildon2/modest-address-book.c b/src/hildon2/modest-address-book.c index 4b2fdfd..845f28e 100644 --- a/src/hildon2/modest-address-book.c +++ b/src/hildon2/modest-address-book.c @@ -317,7 +317,6 @@ static GSList *get_recipients_for_given_contact(EContact * contact) abook_contact = osso_abook_contact_new_from_template (contact); display_name = osso_abook_contact_get_display_name(abook_contact); - g_object_unref (abook_contact); #endif emailid = get_email_addr_from_user(display_name); @@ -325,6 +324,9 @@ static GSList *get_recipients_for_given_contact(EContact * contact) e_contact_set(contact, E_CONTACT_EMAIL_1, emailid); commit_contact(contact, FALSE); } +#if MODEST_ABOOK_API >= 4 + g_object_unref (abook_contact); +#endif } if (emailid) {