From 7448a88ad16d14fa64f2d2ea339bb1524e069fc3 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 10 Dec 2003 02:54:32 +0000 Subject: free the list, not unref it, and free the elements 2003-12-09 JP Rosevear * gui/contact-list-editor/e-contact-list-editor.c (extract_info): free the list, not unref it, and free the elements Fixes #51976 svn path=/trunk/; revision=23900 --- addressbook/gui/contact-list-editor/e-contact-list-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook/gui') 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 a475d15cd6..de95077ced 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -1208,7 +1208,8 @@ extract_info(EContactListEditor *editor) e_contact_set (contact, E_CONTACT_EMAIL, email_list); - /* XXX free email_list? */ + g_list_foreach (email_list, (GFunc) g_free, NULL); + g_list_free (email_list); if (editor->image_buf) { EContactPhoto photo; @@ -1218,7 +1219,6 @@ extract_info(EContactListEditor *editor) e_contact_set (contact, E_CONTACT_LOGO, &photo); } - g_object_unref (email_list); } } -- cgit v1.2.3