mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[poincare] Fix memory leak: parsed expression must be delete
This commit is contained in:
@@ -301,6 +301,7 @@ bool ExpressionLayoutField::handleEventWithText(const char * text, bool indentat
|
||||
return false;
|
||||
}
|
||||
Poincare::ExpressionLayout * resultLayout = resultExpression->createLayout();
|
||||
delete resultExpression;
|
||||
// Find the pointed layout.
|
||||
Poincare::ExpressionLayout * pointedLayout = nullptr;
|
||||
if (resultLayout->isHorizontal()) {
|
||||
|
||||
Reference in New Issue
Block a user