summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-09-29 21:44:43 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-09-29 21:44:43 +0100
commit501bc0494f9424a7f2578e0f53dc3c6c10261492 (patch)
tree6ff6cf4e57bdbde712bdcd71f9634e185a1f2856
parentReturn the number of components processed this run, not the lifetime total (diff)
downloadslicer-501bc0494f9424a7f2578e0f53dc3c6c10261492.tar.bz2
slicer-501bc0494f9424a7f2578e0f53dc3c6c10261492.tar.xz
slicer-501bc0494f9424a7f2578e0f53dc3c6c10261492.zip
Reset cpp outfile pointer if it was internally created
-rw-r--r--slicer/tool/parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp
index 2642292..a1b6f66 100644
--- a/slicer/tool/parser.cpp
+++ b/slicer/tool/parser.cpp
@@ -628,6 +628,10 @@ namespace Slicer {
u->destroy();
+ if (!cppPath.empty()) {
+ cpp = NULL;
+ }
+
return Components() - initial;
}