1
0
mirror of synced 2025-02-26 06:18:05 +01:00

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; std::vector<ASTNode*> body;
auto bodyCleanup = SCOPE_GUARD { auto bodyCleanup = SCOPE_GUARD {
delete condition;
for (auto &statement : body) for (auto &statement : body)
delete statement; delete statement;
}; };