* Fix behavior of check names for fremantle.
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 21 Nov 2008 21:49:10 +0000 (21:49 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 21 Nov 2008 21:49:10 +0000 (21:49 +0000)
pmo-trunk-r6377

src/hildon2/modest-address-book.c

index 4b2fdfd..845f28e 100644 (file)
@@ -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) {