patterns: Fixed double free crash

This commit is contained in:
WerWolv
2021-11-21 00:48:07 +01:00
parent 9a545a48ab
commit aa527ba29b

View File

@@ -641,7 +641,6 @@ namespace hex::pl {
std::vector<ASTNode*> body;
auto bodyCleanup = SCOPE_GUARD {
delete condition;
for (auto &statement : body)
delete statement;
};