diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-03-30 15:25:03 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-03-30 15:25:03 +0200 |
commit | 59ff521faa134a5bd2c4de3621eeadc98d272bac (patch) | |
tree | 165f4275edd59d8438a8e59f055fbfe59f8b9b5e /xps/xpsjxr.c | |
parent | 7099f3ec854cdaa5f5f63759703d307fadcfd1a1 (diff) | |
download | mupdf-59ff521faa134a5bd2c4de3621eeadc98d272bac.tar.xz |
xps: Use fitz memory and string functions.
Diffstat (limited to 'xps/xpsjxr.c')
-rw-r--r-- | xps/xpsjxr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xpsjxr.c b/xps/xpsjxr.c index db0792ae..2ca9a22b 100644 --- a/xps/xpsjxr.c +++ b/xps/xpsjxr.c @@ -84,7 +84,7 @@ xps_decode_jpegxr_block(jxr_image image, int mx, int my, int *data) output->hasalpha = jxr_get_ALPHACHANNEL_FLAG(image); output->bits = 8; output->stride = output->width * output->comps; - output->samples = xps_alloc(ctx, output->stride * output->height); + output->samples = fz_malloc(output->stride * output->height); switch (output->comps) { @@ -128,7 +128,7 @@ xps_decode_jpegxr_alpha_block(jxr_image image, int mx, int my, int *data) if (!output->alpha) { - output->alpha = xps_alloc(ctx, output->width * output->height); + output->alpha = fz_malloc(output->width * output->height); } depth = jxr_get_OUTPUT_BITDEPTH(image); |