- fixed: ConfigSections were not properly deallocated

This commit is contained in:
Christoph Oelckers 2015-11-25 13:40:18 +01:00
parent 355f70986a
commit 78deb70a00

View file

@ -368,8 +368,7 @@ bool FConfigFile::DeleteCurrentSection()
LastSectionPtr = &sec->Next;
}
CurrentSection->~FConfigSection();
delete[] (char *)CurrentSection;
delete CurrentSection;
CurrentSection = sec->Next;
return CurrentSection != NULL;