diff options
author | bubnikv <bubnikv@gmail.com> | 2016-04-15 18:57:38 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-04-15 18:57:38 +0300 |
commit | 83166a7ff3e9e659339e1f7b466b23729cfdbad1 (patch) | |
tree | 617fa2e18fcd2e46ee6227b7181986bad2b5e6ef /xs/src/libslic3r/SVG.cpp | |
parent | 3a0172888aee2b55eaa41d8f16950039c2faba3a (diff) |
Close SVG file when the object gets deallocated.
Diffstat (limited to 'xs/src/libslic3r/SVG.cpp')
-rw-r--r-- | xs/src/libslic3r/SVG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xs/src/libslic3r/SVG.cpp b/xs/src/libslic3r/SVG.cpp index 444810044..259c6eacf 100644 --- a/xs/src/libslic3r/SVG.cpp +++ b/xs/src/libslic3r/SVG.cpp @@ -204,6 +204,7 @@ SVG::Close() { fprintf(this->f, "</svg>\n"); fclose(this->f); + this->f = NULL; printf("SVG written to %s\n", this->filename.c_str()); } |