aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-book-util.c10
-rw-r--r--addressbook/backend/ebook/load-pine-addressbook.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/addressbook/backend/ebook/e-book-util.c b/addressbook/backend/ebook/e-book-util.c
index 3943117ce0..5e291eb73c 100644
--- a/addressbook/backend/ebook/e-book-util.c
+++ b/addressbook/backend/ebook/e-book-util.c
@@ -417,8 +417,12 @@ e_book_name_and_email_query (EBook *book,
namev = g_strsplit (" ", name_cpy, 0);
for (i=0; namev[i]; ++i) {
if (*namev[i]) {
+ char *str = name[i];
+
namev[i] = g_strdup_printf ("(contains \"file_as\" \"%s\")", namev[i]);
++count;
+
+ g_free (str);
}
}
@@ -430,12 +434,8 @@ e_book_name_and_email_query (EBook *book,
qjoined = NULL;
}
-
g_free (name_cpy);
- for (i=0; namev[i]; ++i)
- if (*namev[i])
- g_free (namev[i]);
- g_free (namev);
+ g_strfreev (namev);
g_free (qjoined);
}
diff --git a/addressbook/backend/ebook/load-pine-addressbook.c b/addressbook/backend/ebook/load-pine-addressbook.c
index 6963a7ed46..c1d58a88bf 100644
--- a/addressbook/backend/ebook/load-pine-addressbook.c
+++ b/addressbook/backend/ebook/load-pine-addressbook.c
@@ -53,9 +53,9 @@ parse_line (EBook *book, char *line)
"email", &list,
NULL);
e_list_append(list, strings[2]);
- g_strfreev(strings);
e_book_add_card(book, card, add_card_cb, card);
}
+ g_strfreev(strings);
}
static void