diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-12-28 13:40:21 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-01-09 13:21:40 +0100 |
commit | 6933d36755f90e23308a52c0c3b9c6a4423a9e4c (patch) | |
tree | d845ac62869d8a09fbf638a2c4bb0953efec1eb7 /source/xps/xps-image.c | |
parent | 7a439812b2226c1e3b203ec603f05b39d159f91e (diff) | |
download | mupdf-6933d36755f90e23308a52c0c3b9c6a4423a9e4c.tar.xz |
Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer.
Diffstat (limited to 'source/xps/xps-image.c')
-rw-r--r-- | source/xps/xps-image.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/xps/xps-image.c b/source/xps/xps-image.c index 83f7ac0d..aa495566 100644 --- a/source/xps/xps-image.c +++ b/source/xps/xps-image.c @@ -4,10 +4,7 @@ static fz_image * xps_load_image(fz_context *ctx, xps_document *doc, xps_part *part) { - /* Ownership of data always passes in here */ - unsigned char *data = part->data; - part->data = NULL; - return fz_new_image_from_data(ctx, data, part->size); + return fz_new_image_from_buffer(ctx, part->data); } /* FIXME: area unused! */ |