aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-04-12 03:43:17 +0800
committerChris Toshok <toshok@src.gnome.org>2000-04-12 03:43:17 +0800
commit7cbc26471fb6ff8d789fe91df342d87e3678e712 (patch)
tree5346175dcbbcce787fca7bfc4ddc104d3bac0ff5 /addressbook
parentee070bdf74ec488b0d8186467cbf1d66353f4bfb (diff)
downloadgsoc2013-evolution-7cbc26471fb6ff8d789fe91df342d87e3678e712.tar
gsoc2013-evolution-7cbc26471fb6ff8d789fe91df342d87e3678e712.tar.gz
gsoc2013-evolution-7cbc26471fb6ff8d789fe91df342d87e3678e712.tar.bz2
gsoc2013-evolution-7cbc26471fb6ff8d789fe91df342d87e3678e712.tar.lz
gsoc2013-evolution-7cbc26471fb6ff8d789fe91df342d87e3678e712.tar.xz
gsoc2013-evolution-7cbc26471fb6ff8d789fe91df342d87e3678e712.tar.zst
gsoc2013-evolution-7cbc26471fb6ff8d789fe91df342d87e3678e712.zip
free the esexp_result. (entry_compare): we want comparison functions to
* addressbook/backend/pas/pas-backend-file.c (vcard_matches_search): free the esexp_result. (entry_compare): we want comparison functions to take 2 args. svn path=/trunk/; revision=2395
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index dda5faad94..c0d8b49113 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -245,7 +245,7 @@ entry_compare(PASBackendFileSearchContext *ctx, struct _ESExp *f,
ESExpResult *r;
int truth = FALSE;
- if (argc>1
+ if (argc == 2
&& argv[0]->type == ESEXP_RES_STRING
&& argv[1]->type == ESEXP_RES_STRING) {
char *propname, *prop = NULL;
@@ -372,6 +372,8 @@ vcard_matches_search (PASBackendFileBookView *view, char *vcard_string)
gtk_object_unref(GTK_OBJECT(view->search_context->ecard));
+ e_sexp_result_free(r);
+
return retval;
}