Skip to content
Snippets Groups Projects
Commit 4524679f authored by Christian Strømme's avatar Christian Strømme
Browse files

Use qDeleteAll in QDemonRenderConstantBuffer

parent 22150db9
No related branches found
No related tags found
No related merge requests found
......@@ -76,14 +76,7 @@ QDemonRenderConstantBuffer::QDemonRenderConstantBuffer(const QDemonRef<QDemonRen
QDemonRenderConstantBuffer::~QDemonRenderConstantBuffer()
{
for (TRenderConstantBufferEntryMap::iterator iter = m_constantBufferEntryMap.begin(), end = m_constantBufferEntryMap.end();
iter != end;
++iter) {
delete iter.value();
}
m_constantBufferEntryMap.clear();
qDeleteAll(m_constantBufferEntryMap);
m_context->bufferDestroyed(this);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment