[fpc-pascal]mem leak in FCL

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


Mattias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpc.diff.txt.gz
Type: application/x-gzip
Size: 443 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20030419/acf1c935/attachment.bin>


More information about the fpc-pascal mailing list