Fix leak when loading map in editor (fixes #2573)

This commit is contained in:
def 2020-08-17 00:07:17 +02:00
parent 3252261b68
commit 7032249b26

View file

@ -6279,6 +6279,10 @@ void CEditorMap::MakeGameGroup(CLayerGroup *pGroup)
void CEditorMap::Clean()
{
for(int i = 0; i < m_lGroups.size(); i++)
{
m_lGroups[i]->m_lLayers.delete_all();
}
m_lGroups.delete_all();
m_lEnvelopes.delete_all();
m_lImages.delete_all();