diff options
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llcommon.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llcommon/llcommon.cpp b/indra/llcommon/llcommon.cpp index abc6af2cfc..04872564bf 100644 --- a/indra/llcommon/llcommon.cpp +++ b/indra/llcommon/llcommon.cpp @@ -44,6 +44,7 @@ void *operator new(size_t size) { LL_PROFILE_ZONE_SCOPED; ptr = (malloc)(size); + TracyAlloc(ptr, size); } else { @@ -53,17 +54,15 @@ void *operator new(size_t size) { throw std::bad_alloc(); } - TracyAlloc(ptr, size); return ptr; } void operator delete(void *ptr) noexcept { - TracyFree(ptr); - if (gProfilerEnabled) { LL_PROFILE_ZONE_SCOPED; + TracyFree(ptr); (free)(ptr); } else |