Check for Nil and call destructor.
Source position: objpash.inc line 267
public procedure TObject.Free; |
Free will check the Self pointer and calls Destroy if it is different from Nil. This is a safer method than calling Destroy directly. If a reference to the object must be reset as well (a recommended technique), then the function FreeAndNil should be called.
None.
|
TObject destructor. |
|
|
Free object if needed, and set object reference to Nil. |