diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-09-29 21:44:43 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-09-29 21:44:43 +0100 |
commit | 501bc0494f9424a7f2578e0f53dc3c6c10261492 (patch) | |
tree | 6ff6cf4e57bdbde712bdcd71f9634e185a1f2856 | |
parent | Return the number of components processed this run, not the lifetime total (diff) | |
download | slicer-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.cpp | 4 |
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; } |