[poincare] Fix leak in Power::computeOnMatrixAndComplex

Change-Id: I009947c02053ceef967fb7d68524c7cf61db9c90
This commit is contained in:
Émilie Feral
2017-12-01 15:55:03 +01:00
parent 439c46d736
commit 99ddde28d5

View File

@@ -106,7 +106,9 @@ template<typename T> Matrix * Power::computeOnMatrixAndComplex(const Matrix * m,
delete result;
return nullptr;
}
result = Multiplication::computeOnMatrices<T>(result, m);
Matrix * mult = Multiplication::computeOnMatrices<T>(result, m);
delete result;
result = mult;
}
return result;
}