[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

TObject.FreeInstance

Clean up instance and free the memory reserved for the instance.

Declaration

Source position: objpash.inc line 122

public procedure TObject.FreeInstance; virtual;

Description

FreeInstance cleans up an instance of the current class, and releases the heap memory occupied by the class instance.

See also

TObject.Destroy

  

TObject destructor.

TObject.InitInstance

  

Initialize a new class instance.

TObject.NewInstance

  

Allocate memory on the heap for a new instance