> -----Original Message-----
> Does the following code have a memory leak ?

If an exception were to be raised then you could potentially leak memory,
you should but the Tlist in a try/finally block:

list := Tlist.Create();
try
  ...
finally
  list.Free();
end;

Hih

Si Carter
http://www.tectsoft.net/


__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to