[fpc-pascal] freeing string equal to setting to empty string?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jul 23 23:10:14 CEST 2008


On Wed, 23 Jul 2008 22:54:08 +0200
Luca Olivetti <luca at ventoso.org> wrote:

> En/na Mattias Gaertner ha escrit:
> 
> >> [*]though I know of at least a nasty leak with gtk2 under lazarus
> >> that heaptrc didn't trace.
> > 
> > Which one?
> 
> http://bugs.freepascal.org/view.php?id=9259
> (I just noticed you fixed it, but heaptrc didn't report anything when
> I first discovered it).

Heaptrc only checks the FPC heap. But in this case it was gtk memory. So
you need something like valgrind.

Mattias



More information about the fpc-pascal mailing list