OSSafeReleaseNULL
Frees memory that you allocated for a named class.
Declaration
#define OSSafeReleaseNULL(inst)Parameters
- inst:
The object that you want to free. After freeing the memory, the macro sets the value of
insttoNULL.
Discussion
Use this macro to free memory that you allocated OSTypeAlloc. If inst is NULL, this macro doesn’t attempt to free the memory.