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:
parent
ea3fe754f4
commit
d51aaec97d
@ -101,6 +101,10 @@ public:
|
|||||||
else if (type == htConCmdIter)
|
else if (type == htConCmdIter)
|
||||||
{
|
{
|
||||||
ConCmdIter *iter = (ConCmdIter * )object;
|
ConCmdIter *iter = (ConCmdIter * )object;
|
||||||
|
#if SOURCE_ENGINE == SE_LEFT4DEAD
|
||||||
|
// ICvarIteratorInternal has no virtual destructor
|
||||||
|
g_pMemAlloc->Free(iter->pLast);
|
||||||
|
#endif
|
||||||
delete iter;
|
delete iter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user