System.TObject.FreeInstance
From RAD Studio VCL Reference
Contents |
Delphi Information
From System.pas
procedure FreeInstance virtual;
Unit: System
Type: method
Visibility: public
Member Of: TObject
C++ Information
From System.hpp
virtual void __fastcall FreeInstance(void);
Unit: System
Type: method
Visibility: public
Member Of: TObject
Description
Deallocates memory allocated by a previous call to the NewInstance method.
All destructors call FreeInstance automatically to deallocate memory that was allocated by overriding NewInstance.
Do not call FreeInstance directly. FreeInstance should be overridden if NewInstance was overridden to change the way the object's instance data was allocated.
Like NewInstance, FreeInstance uses the value returned from InstanceSize to deallocate the object's memory.