Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-04-15 18:57:38 +0300
committerbubnikv <bubnikv@gmail.com>2016-04-15 18:57:38 +0300
commit83166a7ff3e9e659339e1f7b466b23729cfdbad1 (patch)
tree617fa2e18fcd2e46ee6227b7181986bad2b5e6ef /xs/src/libslic3r/SVG.cpp
parent3a0172888aee2b55eaa41d8f16950039c2faba3a (diff)
Close SVG file when the object gets deallocated.
Diffstat (limited to 'xs/src/libslic3r/SVG.cpp')
-rw-r--r--xs/src/libslic3r/SVG.cpp1
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());
}