[evolution-data-server] M!19 - e-book-backend-ldap.c:address_populate(): avoid g_strdup+g_free call



commit 3df5204698fea00e245d6d588922e55fbfa7775e
Author: Дилян Палаузов <git-dpa aegee org>
Date:   Sun Jul 7 15:46:47 2019 +0000

    M!19 - e-book-backend-ldap.c:address_populate(): avoid g_strdup+g_free call
    
    Closes https://gitlab.gnome.org/GNOME/evolution-data-server/merge_requests/19

 src/addressbook/backends/ldap/e-book-backend-ldap.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/addressbook/backends/ldap/e-book-backend-ldap.c 
b/src/addressbook/backends/ldap/e-book-backend-ldap.c
index 83e4f08f3..7b82e646b 100644
--- a/src/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/src/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -3133,11 +3133,9 @@ address_populate (EContact *card,
                e_contact_set (card, field, temp);
 
                contact_addr = getormakeEContactAddress (card, other_field);
-               contact_addr->street = g_strdup (temp);
+               contact_addr->street = temp;
                e_contact_set (card, other_field, contact_addr);
                e_contact_address_free (contact_addr);
-
-               g_free (temp);
        }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]