Luca Olivetti wrote:
El Wed, 23 Jul 2008 17:15:13 +0200
Marc Santhoff <[EMAIL PROTECTED]> escribió:
That's the important part, I'm dealing with cleanly freeing strings
when destroying objects.
I may be wrong but I think you don't need to do anything, when you free
a class the memory used by string fields is automagically freed
(either that or heaptrc is lying[*] when it says my programs aren't
leaking memory)
Yup. Ansi strings, refcounted interfaces and dyn arrays are
automagically freed when declared as class members and you destroy the
instance.
Joao Morais
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal