Base Module VST 3.7
SDK for developing VST plug-in
|
Class definition for objects that help guarding against memory leaks. More...
#include <fcleanup.h>
Public Member Functions | |
FMallocReleaser (void *_data) | |
Constructor. More... | |
~FMallocReleaser () | |
Destructor. Calls the free function on the at construction time passed pointer. More... | |
Protected Attributes | |
void * | data |
Remembers the pointer on which free is to be called during destruction. More... | |
Class definition for objects that help guarding against memory leaks.
A stack allocated object of this type automatically frees the "malloced" memory behind an at construction time passed pointer when it reaches the end of its scope.
|
inline |
Constructor.
_data is the pointer to the memory on which free is to be called when this FMallocReleaser object's destructor is executed.
|
inline |
Destructor. Calls the free function on the at construction time passed pointer.
|
protected |
Remembers the pointer on which free is to be called during destruction.