diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -33,6 +33,8 @@ contact (unimplemented as yet). (entry_compare): add support for searching the list items "email", "phone" and "address". + (vcard_matches_search): free the esexp_result. + (entry_compare): we want comparison functions to take 2 args. 2000-04-11 Christopher James Lahey <clahey@helixcode.com> 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; } |