Properly deleting data (delete vs. delete[]).
This commit is contained in:
parent
b07dafc9fa
commit
cf9b54e5ab
@ -111,7 +111,7 @@ namespace PolyVox
|
|||||||
template <typename VoxelType>
|
template <typename VoxelType>
|
||||||
UncompressedBlock<VoxelType>::~UncompressedBlock()
|
UncompressedBlock<VoxelType>::~UncompressedBlock()
|
||||||
{
|
{
|
||||||
delete m_tData;
|
delete[] m_tData;
|
||||||
m_tData = 0;
|
m_tData = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -659,6 +659,8 @@ namespace PolyVox
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete itUncompressedBlock->second;
|
||||||
|
|
||||||
// We can now remove the block data from memory.
|
// We can now remove the block data from memory.
|
||||||
m_pUncompressedBlockCache.erase(itUncompressedBlock);
|
m_pUncompressedBlockCache.erase(itUncompressedBlock);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user