Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.375 Beiträge
Delphi 12 Athens
|
Re: TStringList mit Objekten: Free oder FreeAndNil?
1. Nov 2009, 16:47
Delphi-Quellcode:
destructor TStringList.Destroy;
begin
// In the event that we own the Objects make sure to free them all when we
// destroy the stringlist.
if OwnsObjects then
begin
for I := 0 to FCount - 1 do
GetObject(I).Free;
end;
Ein Therapeut entspricht 1024 Gigapeut.
|