From 501bc0494f9424a7f2578e0f53dc3c6c10261492 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 29 Sep 2016 21:44:43 +0100 Subject: Reset cpp outfile pointer if it was internally created --- slicer/tool/parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3