summaryrefslogtreecommitdiff
path: root/source/tools/murun.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r--source/tools/murun.c2
1 files changed, 1 insertions, 1 deletions
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;