diff options
author | Larry Ewing <lewing@ximian.com> | 2001-09-13 05:20:37 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2001-09-13 05:20:37 +0800 |
commit | c8eb36beb8a53967ad5979392fc86e91d384a692 (patch) | |
tree | e1d642885a9156dea8215e5d857a5d52f56a55df | |
parent | f5d534d812341292f079987a19150fcb3ba8f8a6 (diff) | |
download | gsoc2013-evolution-c8eb36beb8a53967ad5979392fc86e91d384a692.tar gsoc2013-evolution-c8eb36beb8a53967ad5979392fc86e91d384a692.tar.gz gsoc2013-evolution-c8eb36beb8a53967ad5979392fc86e91d384a692.tar.bz2 gsoc2013-evolution-c8eb36beb8a53967ad5979392fc86e91d384a692.tar.lz gsoc2013-evolution-c8eb36beb8a53967ad5979392fc86e91d384a692.tar.xz gsoc2013-evolution-c8eb36beb8a53967ad5979392fc86e91d384a692.tar.zst gsoc2013-evolution-c8eb36beb8a53967ad5979392fc86e91d384a692.zip |
free the values that are being leaked here.
2001-09-12 Larry Ewing <lewing@ximian.com>
* backend/ebook/e-destination.c: free the values that are being
leaked here.
svn path=/trunk/; revision=12783
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 19 |
2 files changed, 20 insertions, 4 deletions
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 <lewing@ximian.com> + + * backend/ebook/e-destination.c: free the values that are being + leaked here. + 2001-09-12 Jon Trowbridge <trow@ximian.com> * 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; |