aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/addressbook-migrate.c3
2 files changed, 8 insertions, 0 deletions
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 <toshok@ximian.com>
+
+ * gui/component/addressbook-migrate.c (migrate_contacts): free up
+ the list returned by e_book_get_contacts.
+
2004-01-12 Rodney Dawes <dobey@ximian.com>
* 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