From 2947fb656340a7435f8731a8553499fbce6d44d7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 15 Sep 2017 20:24:15 +0200 Subject: [PATCH] Initialize allocated memory. --- server/TracySlab.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySlab.hpp b/server/TracySlab.hpp index a8960a57..df756710 100755 --- a/server/TracySlab.hpp +++ b/server/TracySlab.hpp @@ -42,7 +42,7 @@ public: template T* Alloc() { - return (T*)Alloc( sizeof( T ) ); + return new( Alloc( sizeof( T ) ) ) T; } void Unalloc( size_t size )