Sign in Join
FPDoc Onlineexperiment

TPostScript.Destroy destructor

Member of TPostScriptpublicIn unit PostScriptPrinter

Declaration

pascal
destructor Destroy; override

Description

Not described here; this is what TObject.Destroy says of it:

TObject destructor.

Destroy is the destructor of TObject. It will clean up the memory assigned to the instance. Descendent classes should override destroy if they want to do additional clean-up. No other destructor should be implemented.

It is bad programming practice to call Destroy directly. It is better to call the Free method, because that one will check first if Self is different from Nil.

To clean up an instance and reset the reference to the instance, it is best to use the FreeAndNil function.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.