diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-17 21:08:03 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-18 12:42:39 +0800 |
commit | c76f6c6808b6610a35a27a7843afb393b333f78f (patch) | |
tree | 33715ab860b147126a221a8abe9c7025ebb51c96 /source | |
parent | c7a7471c35c803c130d2bfa7fc1a57967364c91e (diff) | |
download | mupdf-c76f6c6808b6610a35a27a7843afb393b333f78f.tar.xz |
Free fz_tree nodes when dropping tree.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/tree.c b/source/fitz/tree.c index 9547dd2f..897e6914 100644 --- a/source/fitz/tree.c +++ b/source/fitz/tree.c @@ -100,6 +100,7 @@ void fz_drop_tree(fz_context *ctx, fz_tree *node, void (*dropfunc)(fz_context *c fz_free(ctx, node->key); if (dropfunc) dropfunc(ctx, node->value); + fz_free(ctx, node); } } |