I like using FreeAndNil

...
FreeAndNil(Terrorists);
...

especially if the classes are defined outside the scope of the procedure. It allows

if Terrorists = NIL then
  Fix issue here


> finally > terrorists.free; > issues.free; > changes.free; > end;

Alister Christie
Computers for People
Phone: 04 471 1849 / Fax: 04 471 1266
PO Box 13085
Johnsonville
Wellington


_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to