Commit 3f30b88f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

atmo: fix invalid delete

(cherry picked from commit f938a451ae4802f7cbbf32a663c0018b851f155a)
parent 3147bfed
......@@ -63,7 +63,7 @@ CAtmoConfig::~CAtmoConfig() {
{
for(int zone=0; zone<m_AtmoZoneDefCount; zone++)
delete m_ZoneDefinitions[zone];
delete m_ZoneDefinitions;
delete[] m_ZoneDefinitions;
m_ZoneDefinitions = NULL;
}
......@@ -392,7 +392,7 @@ void CAtmoConfig::UpdateZoneDefinitionCount()
{
for(int zone=0; zone<m_AtmoZoneDefCount; zone++)
delete m_ZoneDefinitions[zone];
delete m_ZoneDefinitions;
delete[] m_ZoneDefinitions;
m_ZoneDefinitions = NULL;
}
m_AtmoZoneDefCount = getZoneCount();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment