- 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
1 changed files with 1 additions and 2 deletions

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;