[fpc-devel] refcounting in fcl-passrc

Michael Van Canneyt michael at freepascal.org
Sun Aug 22 11:32:40 CEST 2010



On Sun, 22 Aug 2010, Marco van de Voort wrote:

>
> I still get errors on deallocation in fpdoc from time to time.
>
> The most recent one is related to TPasFunctionType.
>
> I searched a bit, and since the type is not used that much, I suspect
> TPasTreeContainer.CreateFunctionType.
>
> Since in both cases the resultparent is an already used reference, shouldn't
> it be increfed ?

Probably.

Till you told me, I wasn't even aware that there was a refcounting mechanism.
I see no reason why there should be one, so I'd be in favour of removing it 
alltogether.

Michael.



More information about the fpc-devel mailing list