From 976bb5518e94cf6f5d0b9f93712b45b04cd9abcc Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 24 Feb 2018 20:38:22 -0600 Subject: [PATCH] Also close the file when we're done writing to it. --- xs/src/libslic3r/SLAPrint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xs/src/libslic3r/SLAPrint.cpp b/xs/src/libslic3r/SLAPrint.cpp index a4062c701..c5b1452aa 100644 --- a/xs/src/libslic3r/SLAPrint.cpp +++ b/xs/src/libslic3r/SLAPrint.cpp @@ -299,6 +299,9 @@ SLAPrint::write_svg(const std::string &outputfile) const fprintf(f,"\n"); // Ensure that the output gets written. fflush(f); + + // Close the file. + fclose(f); } coordf_t