aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-01-25 03:09:18 +0800
committerChris Toshok <toshok@src.gnome.org>2004-01-25 03:09:18 +0800
commitc2855f30b3527a8224a60f0c7d12159c3cd6b680 (patch)
treedeaaff8cc5bfc2feee37b7c89505f73575f89cef /addressbook/gui
parent23a46ee93c3009f13baf40900b290435d3263c37 (diff)
downloadgsoc2013-evolution-c2855f30b3527a8224a60f0c7d12159c3cd6b680.tar.gz
gsoc2013-evolution-c2855f30b3527a8224a60f0c7d12159c3cd6b680.tar.zst
gsoc2013-evolution-c2855f30b3527a8224a60f0c7d12159c3cd6b680.zip
oops. (migrate_contact_folder): fix the unreffing.
2004-01-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_local_folders): oops. (migrate_contact_folder): fix the unreffing. svn path=/trunk/; revision=24408
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook-migrate.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook-migrate.c b/addressbook/gui/component/addressbook-migrate.c
index 116e06ded0..ab35f1fd22 100644
--- a/addressbook/gui/component/addressbook-migrate.c
+++ b/addressbook/gui/component/addressbook-migrate.c
@@ -295,7 +295,6 @@ migrate_contact_folder (char *old_path, ESourceGroup *dest_group, char *source_n
group = e_source_group_new ("", old_uri);
old_source = e_source_new ("", "");
e_source_set_group (old_source, group);
- g_object_unref (group);
new_source = e_source_new (source_name, source_name);
e_source_set_group (new_source, dest_group);
@@ -317,8 +316,14 @@ migrate_contact_folder (char *old_path, ESourceGroup *dest_group, char *source_n
migrate_contacts (old_book, new_book);
finish:
- g_object_unref (old_book);
- g_object_unref (new_book);
+ g_object_unref (new_source);
+ g_object_unref (old_source);
+ g_object_unref (dest_group);
+ g_object_unref (group);
+ if (old_book)
+ g_object_unref (old_book);
+ if (new_book)
+ g_object_unref (new_book);
g_free (old_uri);
}
@@ -428,6 +433,7 @@ migrate_local_folders (AddressbookComponent *component, ESourceGroup *on_this_co
if (!strcmp ((char*)l->data, local_contact_folder))
continue;
+ source_name = get_source_name (on_this_computer, (char*)l->data);
migrate_contact_folder (l->data, on_this_computer, source_name);
g_free (source_name);
}