aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-12-10 10:54:32 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-12-10 10:54:32 +0800
commit7448a88ad16d14fa64f2d2ea339bb1524e069fc3 (patch)
treee754ab918097b2cc850dfbfdf547de642ef25917 /addressbook/gui
parent703571474abbf40128072d8a66bc0d7cedfbed18 (diff)
downloadgsoc2013-evolution-7448a88ad16d14fa64f2d2ea339bb1524e069fc3.tar.gz
gsoc2013-evolution-7448a88ad16d14fa64f2d2ea339bb1524e069fc3.tar.zst
gsoc2013-evolution-7448a88ad16d14fa64f2d2ea339bb1524e069fc3.zip
free the list, not unref it, and free the elements
2003-12-09 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'addressbook/gui')
-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);
}
}