From 1f4808666f7070789ada617b9fbb652d4e9512a0 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 12 Feb 2004 22:43:05 +0000 Subject: free up the list returned by e_book_get_contacts. 2004-02-12 Chris Toshok * gui/component/addressbook-migrate.c (migrate_contacts): free up the list returned by e_book_get_contacts. svn path=/trunk/; revision=24731 --- addressbook/ChangeLog | 5 +++++ addressbook/gui/component/addressbook-migrate.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index b56f680ae7..8e45354182 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2004-02-12 Chris Toshok + + * gui/component/addressbook-migrate.c (migrate_contacts): free up + the list returned by e_book_get_contacts. + 2004-01-12 Rodney Dawes * gui/component/addressbook-component.c (delete_addressbook_cb): diff --git a/addressbook/gui/component/addressbook-migrate.c b/addressbook/gui/component/addressbook-migrate.c index 0cd48cf62b..4076e04de0 100644 --- a/addressbook/gui/component/addressbook-migrate.c +++ b/addressbook/gui/component/addressbook-migrate.c @@ -291,6 +291,9 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book) dialog_set_progress (context, (double)num_added / num_contacts); } + + g_list_foreach (contacts, (GFunc)g_object_unref, NULL); + g_list_free (contacts); } static void -- cgit v1.2.3