From a7e597397133d4aaa717869258eac6ae34c7dad0 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 28 Mar 2017 10:55:24 +0100 Subject: Rejig fz_new_device to be fz_new_derived_device. In keeping with the rest of the code. --- source/tools/murun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/tools') diff --git a/source/tools/murun.c b/source/tools/murun.c index 9ee0f0da..c5cefb62 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -1073,7 +1073,7 @@ js_dev_end_tile(fz_context *ctx, fz_device *dev) static fz_device *new_js_device(fz_context *ctx, js_State *J) { - js_device *dev = fz_new_device(ctx, sizeof *dev); + js_device *dev = fz_new_derived_device(ctx, js_device); dev->super.fill_path = js_dev_fill_path; dev->super.stroke_path = js_dev_stroke_path; -- cgit v1.2.3