aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--addressbook/backend/pas/pas-backend-file.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 89700ccefa..1bca159208 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}