diff options
author | JP Rosevear <jpr@ximian.com> | 2003-12-10 10:54:32 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-12-10 10:54:32 +0800 |
commit | 7448a88ad16d14fa64f2d2ea339bb1524e069fc3 (patch) | |
tree | e754ab918097b2cc850dfbfdf547de642ef25917 | |
parent | 703571474abbf40128072d8a66bc0d7cedfbed18 (diff) | |
download | gsoc2013-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
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/contact-list-editor/e-contact-list-editor.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index a68d11b86c..a24ffe2f7a 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +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 + 2003-12-06 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.c 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); } } |