1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 20:33:52 +00:00

Initialize allocated memory.

This commit is contained in:
Bartosz Taudul 2017-09-15 20:24:15 +02:00
parent b4faa0a9b9
commit 2947fb6563

View File

@ -42,7 +42,7 @@ public:
template<typename T> template<typename T>
T* Alloc() T* Alloc()
{ {
return (T*)Alloc( sizeof( T ) ); return new( Alloc( sizeof( T ) ) ) T;
} }
void Unalloc( size_t size ) void Unalloc( size_t size )