]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4923/2: Add closing a file in `scale-down-image`
authorMasamichi Hosoda <trueroad@trueroad.jp>
Fri, 8 Jul 2016 16:37:27 +0000 (01:37 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Thu, 14 Jul 2016 13:58:30 +0000 (22:58 +0900)
This commit adds `close-port` for closing a file
in `scale-down-image`.

scm/ps-to-png.scm

index f5d40d0c5ceefdcd94cbcf4e39cc126c0b57a57b..f20ca61b41a471c0b7646c9248915fdf1138670f 100644 (file)
@@ -69,6 +69,8 @@
            (search-pnmtopng)
            tmp2-name)))
 
+    (close-port port-tmp1)
+    (close-port port-tmp2)
     (ly:debug (_ "Copying `~a' to `~a'...") file tmp1-name)
     (copy-binary-file file tmp1-name)
     (ly:system-with-shell cmd)