From de2f6d31cb030b932a60417e422c07111a101fc6 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 10 Dec 2003 03:02:40 +0000 Subject: free email list properly 2003-12-09 JP Rosevear * gui/contact-list-editor/e-contact-list-editor.c (fill_in_info): free email list properly svn path=/trunk/; revision=23901 --- addressbook/ChangeLog | 5 +++++ addressbook/gui/contact-list-editor/e-contact-list-editor.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index a24ffe2f7a..ca93fbf1ca 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2003-12-09 JP Rosevear + + * gui/contact-list-editor/e-contact-list-editor.c (fill_in_info): + free email list properly + 2003-12-09 JP Rosevear * gui/contact-list-editor/e-contact-list-editor.c (extract_info): diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c index de95077ced..60ed1cf4f6 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -1261,14 +1261,14 @@ fill_in_info(EContactListEditor *editor) } } - /* XXX free email_list */ + g_list_foreach (email_list, (GFunc) g_free, NULL); + g_list_free (email_list); photo = e_contact_get (editor->contact, E_CONTACT_LOGO); if (photo) { set_image_from_data (editor, photo->data, photo->length); e_contact_photo_free (photo); } - g_object_unref (email_list); } } -- cgit v1.2.3