summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-02-05 22:49:11 +0100
committerSebastian Rasmussen <sebras@gmail.com>2018-02-06 03:07:10 +0100
commit71b2647252d0989995f66cb17e6ed399466f03ce (patch)
tree329b7f55fff667d93a0c6ad6fbae92450d7ce82e
parent86368172d3052dfa97cc3704bd2438ed1d529965 (diff)
downloadmupdf-71b2647252d0989995f66cb17e6ed399466f03ce.tar.xz
Free fz_output cache buffer when dropping fz_output.
-rw-r--r--source/fitz/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/output.c b/source/fitz/output.c
index 4e3f39a3..6f4b0b84 100644
--- a/source/fitz/output.c
+++ b/source/fitz/output.c
@@ -302,6 +302,7 @@ fz_drop_output(fz_context *ctx, fz_output *out)
fz_warn(ctx, "dropping unclosed output");
if (out->drop)
out->drop(ctx, out->state);
+ fz_free(ctx, out->bp);
if (out->state != &fz_stdout_global && out->state != &fz_stderr_global)
fz_free(ctx, out);
}