[lazarus] Memory leak in TDirectoryDefines?
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Dec 18 09:49:23 EST 2003
On Thu, 18 Dec 2003 14:20:32 +0100 Vincent Snijders
<vslist at mail.cwazy.co.uk> wrote:
> Hi,
>
> I found another memory leak. The class TDirectoryDefines has a field
> UnitLinksTree which contains node with TUnitNameLinks. These nodes don't
> seem to get freeed.
>
> Now, when the UnitLinksTree is freeed, the tree and the nodes are
> freeed, but as far as I can see not the TUnitNameLinks object which are
> contained in the data field of the nodes. Should I add some code to
> TDirectoryDefines.Destroy, to walk the tree and free the data?
Thanks. These three lines I can add without patch. ;)
> Or should
> I look at something else.
>
> The memory leak occurs when you rebuild lazarus, including packages.
Fixed.
Mattias
More information about the Lazarus
mailing list