diff options
author | Chris Toshok <toshok@ximian.com> | 2004-02-13 06:43:05 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-02-13 06:43:05 +0800 |
commit | 1f4808666f7070789ada617b9fbb652d4e9512a0 (patch) | |
tree | 72980726c4b8cf1e085cca55fd01d4328787ceaa | |
parent | 51053180df795a8fafcdc55fd48709cf67f2e911 (diff) | |
download | gsoc2013-evolution-1f4808666f7070789ada617b9fbb652d4e9512a0.tar gsoc2013-evolution-1f4808666f7070789ada617b9fbb652d4e9512a0.tar.gz gsoc2013-evolution-1f4808666f7070789ada617b9fbb652d4e9512a0.tar.bz2 gsoc2013-evolution-1f4808666f7070789ada617b9fbb652d4e9512a0.tar.lz gsoc2013-evolution-1f4808666f7070789ada617b9fbb652d4e9512a0.tar.xz gsoc2013-evolution-1f4808666f7070789ada617b9fbb652d4e9512a0.tar.zst gsoc2013-evolution-1f4808666f7070789ada617b9fbb652d4e9512a0.zip |
free up the list returned by e_book_get_contacts.
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.
svn path=/trunk/; revision=24731
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-migrate.c | 3 |
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 |