- 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; LastSectionPtr = &sec->Next;
} }
CurrentSection->~FConfigSection(); delete CurrentSection;
delete[] (char *)CurrentSection;
CurrentSection = sec->Next; CurrentSection = sec->Next;
return CurrentSection != NULL; return CurrentSection != NULL;