From 2fbef62553d2e603f597390ab4639a7b657e6799 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sat, 13 Mar 2021 16:44:28 -0600 Subject: [PATCH] Fixed a crash on exit involving the presence of multiple VGui screen manifests and a possibly defunct memory leak fix --- sp/src/game/client/panelmetaclassmgr.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sp/src/game/client/panelmetaclassmgr.cpp b/sp/src/game/client/panelmetaclassmgr.cpp index 2b36cc44..6f0b50d0 100644 --- a/sp/src/game/client/panelmetaclassmgr.cpp +++ b/sp/src/game/client/panelmetaclassmgr.cpp @@ -234,14 +234,6 @@ CPanelMetaClassMgrImp::CPanelMetaClassMgrImp() : m_PanelTypeDict( true, 0, 32 ) CPanelMetaClassMgrImp::~CPanelMetaClassMgrImp() { -#ifdef MAPBASE // VDC Memory Leak Fixes - while (m_MetaClassKeyValues.Count()>0) - { - if (m_MetaClassKeyValues[0]) - m_MetaClassKeyValues[0]->deleteThis(); - m_MetaClassKeyValues.RemoveAt(0); - } -#endif }