nw::os::SafeFree Function
template <typename TMemory>
void SafeFree(
TMemory *& memory,
IAllocator * allocator
);
| Name | Description |
|---|---|
| TMemory | The type of the memory to free. |
| Name | Description | |
|---|---|---|
| in | memory | The memory to be freed. |
| in | allocator | Allocator. |
Inline function for setting memory to zero after it has been freed.
CONFIDENTIAL