diff --git a/core/smn_console.cpp b/core/smn_console.cpp index 5ee3a344..a210fdd5 100644 --- a/core/smn_console.cpp +++ b/core/smn_console.cpp @@ -101,6 +101,10 @@ public: else if (type == htConCmdIter) { ConCmdIter *iter = (ConCmdIter * )object; +#if SOURCE_ENGINE == SE_LEFT4DEAD + // ICvarIteratorInternal has no virtual destructor + g_pMemAlloc->Free(iter->pLast); +#endif delete iter; } }