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