Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Source/TObject.pas
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@
constructor Create; virtual; empty;
method Destroy; virtual; empty; // can't use "destructor" because this project isn't built using Delphi Compatibility. same diff though.

method Free;
method Free; inline; // this allows writing SomeObject.Free without getting an NRE in Echoes
begin
self:InternalFree;
end;

method InternalFree;
begin
if assigned(self) and not fDestroyed then begin
fDestroyed := true;
Expand Down