[poincare][apps] Memory leaks

Change-Id: I2338760fb52bcf57997f7d82fd1f5cee68e95266
This commit is contained in:
Émilie Feral
2017-08-24 17:30:21 +02:00
parent c6598fb24d
commit 35a9753609
3 changed files with 10 additions and 3 deletions

View File

@@ -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));
}