From 7cbc26471fb6ff8d789fe91df342d87e3678e712 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 11 Apr 2000 19:43:17 +0000 Subject: 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 --- addressbook/backend/pas/pas-backend-file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addressbook') 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; } -- cgit v1.2.3