aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-07-15 14:47:34 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-07-15 14:47:34 +0800
commit551e234d4956820652aea13b1f345e810c4ce974 (patch)
tree59d7a02eedc25bdcf7a60042d1eea606f799d4d2
parentef9df4d2a34a887c1ba2f17cfd5d5eb4c71e1e73 (diff)
downloadgsoc2013-evolution-551e234d4956820652aea13b1f345e810c4ce974.tar
gsoc2013-evolution-551e234d4956820652aea13b1f345e810c4ce974.tar.gz
gsoc2013-evolution-551e234d4956820652aea13b1f345e810c4ce974.tar.bz2
gsoc2013-evolution-551e234d4956820652aea13b1f345e810c4ce974.tar.lz
gsoc2013-evolution-551e234d4956820652aea13b1f345e810c4ce974.tar.xz
gsoc2013-evolution-551e234d4956820652aea13b1f345e810c4ce974.tar.zst
gsoc2013-evolution-551e234d4956820652aea13b1f345e810c4ce974.zip
Unrefing the query.
svn path=/trunk/; revision=29774
-rw-r--r--addressbook/ChangeLog9
-rw-r--r--addressbook/gui/component/addressbook-migrate.c5
-rw-r--r--addressbook/util/eab-book-util.c2
3 files changed, 13 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 78db70937b..39f65dccaf 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,12 @@
+2005-07-15 Sushma Rai <rsushma@novell.com>
+
+ * gui/component/addressbook-migrate.c (migrate_contacts): unref query.
+ (migrate_contact_lists_for_local_folders): Similar.
+ (migrate_company_phone_for_local_folders): Similar.
+
+ * util/eab-book-util.c: using e_book_query_unref instead of
+ g_object_unref.
+
2005-07-13 Sushma Rai <rsushma@novell.com>
* addressbook/importers/evolution-vcard-importer.c (vcard_supported):
diff --git a/addressbook/gui/component/addressbook-migrate.c b/addressbook/gui/component/addressbook-migrate.c
index 4b6e81ef1e..ea5c92a263 100644
--- a/addressbook/gui/component/addressbook-migrate.c
+++ b/addressbook/gui/component/addressbook-migrate.c
@@ -248,6 +248,7 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
/* both books are loaded, start the actual migration */
e_book_get_contacts (old_book, query, &contacts, NULL);
+ e_book_query_unref (query);
num_contacts = g_list_length (contacts);
for (l = contacts; l; l = l->next) {
@@ -844,8 +845,8 @@ migrate_contact_lists_for_local_folders (MigrationContext *context, ESourceGroup
}
query = e_book_query_any_field_contains ("");
-
e_book_get_contacts (book, query, &contacts, NULL);
+ e_book_query_unref (query);
num_converted = 0;
num_contacts = g_list_length (contacts);
@@ -919,8 +920,8 @@ migrate_company_phone_for_local_folders (MigrationContext *context, ESourceGroup
}
query = e_book_query_any_field_contains ("");
-
e_book_get_contacts (book, query, &contacts, NULL);
+ e_book_query_unref (query);
num_converted = 0;
num_contacts = g_list_length (contacts);
diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c
index 473d386f54..afe5124724 100644
--- a/addressbook/util/eab-book-util.c
+++ b/addressbook/util/eab-book-util.c
@@ -173,7 +173,7 @@ eab_nickname_query (EBook *book,
retval = e_book_async_get_contacts (book, query, cb, closure);
g_free (query_string);
- g_object_unref (query);
+ e_book_query_unref (query);
return retval;
}