Fixed a memory leak that occurred when a ConCmdIter handle was closed. (L4D engine)

Note: These handles are used by the FindFirstConCommand and FindNextConCommand natives.
This commit is contained in:
Scott Ehlert 2008-12-02 10:57:42 -06:00
parent ea3fe754f4
commit d51aaec97d

View File

@ -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;
}
}