> On Sep 6, 2017, at 4:55 PM, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> 
> 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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to