aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-list-editor/e-contact-list-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/contact-list-editor/e-contact-list-editor.c')
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}