Fix mismatched free/delete

This commit is contained in:
Desire NUENTSA 2013-03-05 16:35:13 +01:00
parent a1ddf2e7a8
commit 69bd334d2b

View File

@ -474,7 +474,7 @@ class SparseMatrix
{
if(m_innerNonZeros != 0)
return;
m_innerNonZeros = new Index[m_outerSize];
m_innerNonZeros = static_cast<Index*>(std::malloc(m_outerSize * sizeof(Index)));
for (int i = 0; i < m_outerSize; i++)
{
m_innerNonZeros[i] = m_outerIndex[i+1] - m_outerIndex[i];