summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-01-21 21:36:12 -0500
committerSolomon Peachy <pizza@shaftnet.org>2018-01-21 21:36:12 -0500
commita722a18ca01e61b09c85ec23d81e3877fa5e5d67 (patch)
tree6248543a730d42c686c2c02a5c49809ebc1f0f2e
parentab5b9baaf78651b44713efdcfa51a573d4efaa71 (diff)
downloadselphy_print-a722a18ca01e61b09c85ec23d81e3877fa5e5d67.tar.gz
selphy_print-a722a18ca01e61b09c85ec23d81e3877fa5e5d67.tar.bz2
selphy_print-a722a18ca01e61b09c85ec23d81e3877fa5e5d67.zip
mitsu70x: Close the lamination file when we're done with it.
-rw-r--r--backend_mitsu70x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend_mitsu70x.c b/backend_mitsu70x.c
index 1ea6c49..3e70a84 100644
--- a/backend_mitsu70x.c
+++ b/backend_mitsu70x.c
@@ -1142,6 +1142,8 @@ repeat:
/* Back off the buffer so we "wrap" on the print row. */
ctx->datalen -= ((LAMINATE_STRIDE - ctx->cols) * 2);
}
+ /* We're done */
+ close(fd);
/* Zero out the tail end of the buffer. */
j = be16_to_cpu(mhdr.lamcols) * be16_to_cpu(mhdr.lamrows) * 2;
@@ -1991,7 +1993,7 @@ static int mitsu70x_cmdline_arg(void *vctx, int argc, char **argv)
/* Exported */
struct dyesub_backend mitsu70x_backend = {
.name = "Mitsubishi CP-D70/D707/K60/D80",
- .version = "0.74",
+ .version = "0.75",
.uri_prefix = "mitsu70x",
.cmdline_usage = mitsu70x_cmdline,
.cmdline_arg = mitsu70x_cmdline_arg,