> On Sep 6, 2017, at 4:55 PM, Graeme Geldenhuys <[email protected]>
> wrote:
>
> Either way, modifying the example to use a getter method AND
> TAggregatedObject, I managed to get rid of both memory leaks. Here is the
> working [memory leak free] code now:
Does the original code work if you just add the Free() call? I would expect it
to leak without that.
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal