From 78deb70a000b72be1bfa67f2ab84298ce4e941f4 Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <c.oelckers@zdoom.fake>
Date: Wed, 25 Nov 2015 13:40:18 +0100
Subject: [PATCH] - fixed: ConfigSections were not properly deallocated

---
 src/configfile.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/configfile.cpp b/src/configfile.cpp
index b8db74eb3..13cfea517 100644
--- a/src/configfile.cpp
+++ b/src/configfile.cpp
@@ -368,8 +368,7 @@ bool FConfigFile::DeleteCurrentSection()
 			LastSectionPtr = &sec->Next;
 		}
 
-		CurrentSection->~FConfigSection();
-		delete[] (char *)CurrentSection;
+		delete CurrentSection;
 
 		CurrentSection = sec->Next;
 		return CurrentSection != NULL;