[fpc-pascal] freeing string equal to setting to empty string?
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jul 23 19:45:33 CEST 2008
On Wed, 23 Jul 2008 19:21:00 +0200
Luca Olivetti <luca at ventoso.org> wrote:
> El Wed, 23 Jul 2008 17:15:13 +0200
> Marc Santhoff <M.Santhoff at t-online.de> 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)
>
> [*]though I know of at least a nasty leak with gtk2 under lazarus that
> heaptrc didn't trace.
Which one?
Mattias
More information about the fpc-pascal
mailing list