Back

LL016

Missing inherited Destroy

Object Pascal — Delphi & Free Pascal
Error
Reliability

Missing `inherited Destroy` can leak resources and corrupt cleanup

missing `inherited Destroy` can leak resources and corrupt cleanup.

Why this severity

missing `inherited Destroy` can leak resources and corrupt cleanup.


Known false positives

uncommon custom destruction chains that call inherited indirectly.

Remediation example

destructor TMyType.Destroy;
begin
  FreeAndNil(FBuffer);
  inherited Destroy;
end;

Reconnecting… Connection lost. Reload