From 2ea1295e49e3e7a0873aac5a6345dd5759760d77 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 17 Feb 2015 20:39:24 +0100 Subject: Fix memory leak in fz_page. --- source/pdf/js/pdf-js.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/pdf/js/pdf-js.c') diff --git a/source/pdf/js/pdf-js.c b/source/pdf/js/pdf-js.c index 008cebfb..84a14381 100644 --- a/source/pdf/js/pdf-js.c +++ b/source/pdf/js/pdf-js.c @@ -338,6 +338,7 @@ static pdf_jsimp_obj *field_getValue(void *jsctx, void *obj) return NULL; fval = pdf_field_value(js->ctx, js->doc, field); + /* TODO: free fval! */ return pdf_jsimp_from_string(js->imp, fval?fval:""); } -- cgit v1.2.3