Fixed: Memory leak
--HG-- branch : develop
This commit is contained in:
parent
6570b26297
commit
e2f776d21e
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ void CRenderTargetManager::cleanup()
|
||||||
desc->TextureUser = NULL;
|
desc->TextureUser = NULL;
|
||||||
desc->TextureInterface = NULL; // CSmartPtr
|
desc->TextureInterface = NULL; // CSmartPtr
|
||||||
m_RenderTargets.erase(m_RenderTargets.begin() + i);
|
m_RenderTargets.erase(m_RenderTargets.begin() + i);
|
||||||
|
delete desc;
|
||||||
--i;
|
--i;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue