remove memory of loadTexture.

This commit is contained in:
Erwin Coumans
2017-09-13 12:07:19 -07:00
parent 19057c2004
commit 2eaac410b5

View File

@@ -1071,7 +1071,12 @@ void TinyRendererVisualShapeConverter::resetAll()
delete ptr;
}
}
for (int i=0;i<m_data->m_textures.size();i++)
{
free(m_data->m_textures[i].textureData);
}
m_data->m_textures.clear();
m_data->m_swRenderInstances.clear();
m_data->m_visualShapes.clear();
}