[fpc-pascal] Memory leak on TFPGInterfacedObjectList
Marco van de Voort
marcov at stack.nl
Mon Jan 27 23:39:10 CET 2014
In our previous episode, Joao Morais said:
>
> Hello list. Whenever I add interfaced objects to a
> TFPGInterfacedObjectList, those objects apparently add two references,
> while release only one when the list is cleaned or destroyed.
v1 reference will only be freed at the end, and also counts as one. Still,
that doesn't explain the memleak, but to test it, try to nest it within a
function instead of with globals.
More information about the fpc-pascal
mailing list