From 9b4acc78d2a56a5f79d69f50e72197930509505e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 26 Apr 2016 20:11:49 +0200 Subject: Add fz_close_device function. Garbage collected languages need a way to signal that they are done with a device other than freeing it. Call it implicitly on fz_drop_device; so take care not to call it again in case it has been explicitly called already. --- docs/mutool/examples/draw-device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/mutool/examples') diff --git a/docs/mutool/examples/draw-device.js b/docs/mutool/examples/draw-device.js index 4912e956..140fb54b 100644 --- a/docs/mutool/examples/draw-device.js +++ b/docs/mutool/examples/draw-device.js @@ -40,6 +40,6 @@ var transform = [2,0,0,2,0,0] } device.popClip(); } -//device.flush(); +device.close(); pixmap.saveAsPNG("out.png"); -- cgit v1.2.3