mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Initialize allocated memory.
This commit is contained in:
parent
b4faa0a9b9
commit
2947fb6563
@ -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 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user