patterns: Fixed double free crash
This commit is contained in:
parent
9a545a48ab
commit
aa527ba29b
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user