aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-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;
}