summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-09-25 19:27:24 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-10-12 15:50:49 +0800
commitff0559446853fd02b59eb2ac6501d53e96662525 (patch)
tree470eb723543ee8ea336249d92133b5fd65540cdc
parent03e5c64ecad281f2e0ae3042857cafc952542c7c (diff)
downloadmupdf-ff0559446853fd02b59eb2ac6501d53e96662525.tar.xz
Drop default colorspaces upon exception.
-rw-r--r--source/pdf/pdf-op-run.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c
index 09fc4e23..b4c014e7 100644
--- a/source/pdf/pdf-op-run.c
+++ b/source/pdf/pdf-op-run.c
@@ -2388,6 +2388,7 @@ pdf_new_run_processor(fz_context *ctx, fz_device *dev, fz_matrix ctm, const char
}
fz_catch(ctx)
{
+ fz_drop_default_colorspaces(ctx, proc->default_cs);
fz_drop_path(ctx, proc->path);
fz_free(ctx, proc);
fz_rethrow(ctx);