From 82a3f1c965bcc7deb2fbd23a1b85dd81e8e72597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Fri, 28 Jan 2022 09:40:14 +0100 Subject: [PATCH] Fixed memory leak in PlaceholderParser::compare_op(). --- src/libslic3r/PlaceholderParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/PlaceholderParser.cpp b/src/libslic3r/PlaceholderParser.cpp index f763c8bb6..e84ddc503 100644 --- a/src/libslic3r/PlaceholderParser.cpp +++ b/src/libslic3r/PlaceholderParser.cpp @@ -501,6 +501,7 @@ namespace client boost::throw_exception(qi::expectation_failure( lhs.it_range.begin(), rhs.it_range.end(), spirit::info("*Cannot compare the types."))); } + lhs.reset(); lhs.type = TYPE_BOOL; lhs.data.b = invert ? ! value : value; }