summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-03-28 10:55:24 +0100
committerRobin Watts <robin.watts@artifex.com>2017-03-28 10:56:21 +0100
commita7e597397133d4aaa717869258eac6ae34c7dad0 (patch)
treece8c4a2c34f4282b69ddd24531ae1c319470e8c4 /source/pdf
parent57b2ee8fe52cf9e2eaf4095b8697f33e17a5529f (diff)
downloadmupdf-a7e597397133d4aaa717869258eac6ae34c7dad0.tar.xz
Rejig fz_new_device to be fz_new_derived_device.
In keeping with the rest of the code.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c
index 8a5b17e2..ec247cec 100644
--- a/source/pdf/pdf-device.c
+++ b/source/pdf/pdf-device.c
@@ -1081,7 +1081,7 @@ pdf_dev_drop_device(fz_context *ctx, fz_device *dev)
fz_device *pdf_new_pdf_device(fz_context *ctx, pdf_document *doc, const fz_matrix *topctm, const fz_rect *mediabox, pdf_obj *resources, fz_buffer *buf)
{
- pdf_device *dev = fz_new_device(ctx, sizeof *dev);
+ pdf_device *dev = fz_new_derived_device(ctx, pdf_device);
dev->super.close_device = pdf_dev_close_device;
dev->super.drop_device = pdf_dev_drop_device;