[fpc-pascal]mem leak in FCL
nc-gaertnma at netcologne.de
Sat Apr 19 01:44:58 CEST 2003
On Fri, 18 Apr 2003 20:46:22 +0200 (CEST)
Michael.VanCanneyt at wisa.be wrote:
> On Fri, 18 Apr 2003, Mattias Gaertner wrote:
> > Hi there,
> > I have spottet a mem leak in fcl/inc/cregist.inc.
> > When registering a component the ComponentPages variable is created, but
> > never freed.
> > I would like to add a procedure FreeComponentPages, which is called in
> > the finalization.
> > Should I send a patch?
> Yes, please.
On a second thought, a simple ComponentPages.Free and a
TComponentPage.Destroy look better. Patch is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 443 bytes
Desc: not available
More information about the fpc-pascal