From c8eb36beb8a53967ad5979392fc86e91d384a692 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Wed, 12 Sep 2001 21:20:37 +0000 Subject: free the values that are being leaked here. 2001-09-12 Larry Ewing * backend/ebook/e-destination.c: free the values that are being leaked here. svn path=/trunk/; revision=12783 --- addressbook/ChangeLog | 5 +++++ addressbook/backend/ebook/e-destination.c | 19 +++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 4e28c6bc91..fbac5ee6d9 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2001-09-12 Larry Ewing + + * backend/ebook/e-destination.c: free the values that are being + leaked here. + 2001-09-12 Jon Trowbridge * gui/component/select-names/e-select-names-completion.c (match_email): diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index 842fa8652e..e906cd8bed 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -1285,6 +1285,9 @@ e_destination_xml_decode (EDestination *dest, xmlNodePtr node) if (list_email) e_destination_set_email (list_dest, list_email); + g_free (list_name); + g_free (list_email); + list_dests = g_list_append (list_dests, list_dest); } } else if (!strcmp (node->name, "book_uri")) { @@ -1310,14 +1313,22 @@ e_destination_xml_decode (EDestination *dest, xmlNodePtr node) e_destination_clear (dest); - if (name) + if (name) { e_destination_set_name (dest, name); - if (email) + g_free (name); + } + if (email) { e_destination_set_email (dest, email); - if (book_uri) + g_free (email); + } + if (book_uri) { e_destination_set_book_uri (dest, book_uri); - if (card_uid) + g_free (book_uri); + } + if (card_uid) { e_destination_set_card_uid (dest, card_uid, email_num); + g_free (card_uid); + } if (list_dests) dest->priv->list_dests = list_dests; -- cgit v1.2.3