diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2017-09-15 21:24:15 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2017-09-15 21:24:15 +0300 |
commit | 2947fb656340a7435f8731a8553499fbce6d44d7 (patch) | |
tree | def154b165754fd18128539185b3a3b720624b8a /server/TracySlab.hpp | |
parent | b4faa0a9b9a335b6971a03f44b19f2e245971caa (diff) |
Initialize allocated memory.
Diffstat (limited to 'server/TracySlab.hpp')
-rwxr-xr-x | server/TracySlab.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename T> T* Alloc() { - return (T*)Alloc( sizeof( T ) ); + return new( Alloc( sizeof( T ) ) ) T; } void Unalloc( size_t size ) |