Additional VertexPatcher::Restore cleanup

This commit is contained in:
PatrickvL 2017-04-21 09:38:16 +02:00
parent b483cedca9
commit 11c13b858b
1 changed files with 3 additions and 0 deletions

View File

@ -1064,6 +1064,9 @@ bool XTL::VertexPatcher::Restore()
if(this->m_bAllocatedStreamZeroData)
{
free(m_pNewVertexStreamZeroData);
// Cleanup, just to be sure :
m_pNewVertexStreamZeroData = nullptr;
this->m_bAllocatedStreamZeroData = false;
}
}
else