summaryrefslogtreecommitdiff
path: root/source/fitz/load-jxr.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/load-jxr.c')
-rw-r--r--source/fitz/load-jxr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/fitz/load-jxr.c b/source/fitz/load-jxr.c
index 3742b49e..f3809e69 100644
--- a/source/fitz/load-jxr.c
+++ b/source/fitz/load-jxr.c
@@ -422,10 +422,8 @@ fz_load_jxr(fz_context *ctx, unsigned char *data, size_t size)
}
fz_always(ctx)
{
- if (info.samples)
- fz_free(ctx, info.samples);
- if (info.cspace)
- fz_drop_colorspace(ctx, info.cspace);
+ fz_free(ctx, info.samples);
+ fz_drop_colorspace(ctx, info.cspace);
}
fz_catch(ctx)
{