mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Enable KeyValues leak trace in debug
Assert fails when there is still an un-freed KeyValues structure in memory.
This commit is contained in:
parent
af14cbe170
commit
7bbfa371be
@ -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
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef KVLEAKTRACE_H
|
||||
#define KVLEAKTRACE_H
|
||||
//#include "tier1/utlvector.h"
|
||||
#include "tier1/utlvector.h"
|
||||
|
||||
#ifdef LEAKTRACK
|
||||
class CLeakTrack
|
||||
|
Loading…
x
Reference in New Issue
Block a user