nw::os::SafeFree Function

Syntax

template <typename TMemory>
void SafeFree(
     TMemory *& memory,
     IAllocator * allocator
);

Template Arguments

Name Description
TMemory The type of the memory to free.

Arguments

Name Description
in memory The memory to be freed.
in allocator Allocator.

Return Values

None.

Description

Inline function for setting memory to zero after it has been freed.


CONFIDENTIAL