diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index b5d51a2e..41121a69 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -473,6 +473,11 @@ public: static tracy_force_inline void MemFreeCallstack( const void* ptr, int depth, bool secure ) { if( secure && !ProfilerAvailable() ) return; + if( !ProfilerAllocatorAvailable() ) + { + MemFree( ptr, secure ); + return; + } #ifdef TRACY_HAS_CALLSTACK auto& profiler = GetProfiler(); # ifdef TRACY_ON_DEMAND