[fpc-pascal]mem leak in FCL

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sat Apr 19 16:34:23 CEST 2003


On Sat, 19 Apr 2003, Mattias Gaertner wrote:

> 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.

Applied.

Michael.




More information about the fpc-pascal mailing list