mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare][apps] Memory leaks
Change-Id: I2338760fb52bcf57997f7d82fd1f5cee68e95266
This commit is contained in:
@@ -86,6 +86,7 @@ Evaluation<double> * Calculation::output(Context * context) {
|
||||
Expression * exp = Expression::parse(m_outputText);
|
||||
if (exp != nullptr) {
|
||||
m_output = exp->evaluate<double>(*context);
|
||||
delete exp;
|
||||
} else {
|
||||
m_output = new Complex<double>(Complex<double>::Float(NAN));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user