diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-07-04 10:57:12 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-07-04 10:57:12 +0300 |
commit | 4f6a54a735a993c450656a1180d27323668186cf (patch) | |
tree | f5c042a5420126e8c4862cbda0df77dbe7d012de /src/GCodes/GCodeBuffer/StringParser.cpp | |
parent | fe0b4766b0c74368f810e79cb7530a74e5b1ff4f (diff) |
Fixed memory leaks in expression parser
Diffstat (limited to 'src/GCodes/GCodeBuffer/StringParser.cpp')
-rw-r--r-- | src/GCodes/GCodeBuffer/StringParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GCodes/GCodeBuffer/StringParser.cpp b/src/GCodes/GCodeBuffer/StringParser.cpp index a4ea34a4..bd8b2c74 100644 --- a/src/GCodes/GCodeBuffer/StringParser.cpp +++ b/src/GCodes/GCodeBuffer/StringParser.cpp @@ -1929,7 +1929,7 @@ void StringParser::AddParameters(VariableSet& vs, int codeRunning) noexcept catch (const GCodeException&) { //TODO can we report the error anywhere? - ev.Set(nullptr); + ev.SetNull(nullptr); } char paramName[2] = { letter, 0 }; vs.InsertNewParameter(paramName, ev); |