mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Initialize allocated memory.
This commit is contained in:
parent
b4faa0a9b9
commit
2947fb6563
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user