mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix leak when loading map in editor (fixes #2573)
This commit is contained in:
parent
3252261b68
commit
7032249b26
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue