Enable KeyValues leak trace in debug

Assert fails when there is still an un-freed KeyValues structure in memory.
This commit is contained in:
Kawe Mazidjatari 2022-11-23 17:34:20 +01:00
parent af14cbe170
commit 7bbfa371be
2 changed files with 5 additions and 1 deletions

View File

@ -366,6 +366,10 @@ template <typename T> const char* MemAllocClassName(T* p)
#define MAX_PATH 260
#endif
#ifdef _DEBUG
#define LEAKTRACK
#endif
//-----------------------------------------------------------------------------
// Time stamp counter
//-----------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
#ifndef KVLEAKTRACE_H
#define KVLEAKTRACE_H
//#include "tier1/utlvector.h"
#include "tier1/utlvector.h"
#ifdef LEAKTRACK
class CLeakTrack