<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 6, 2017 at 6:55 AM, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:mailinglists@geldenhuys.co.uk" target="_blank">mailinglists@geldenhuys.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I can't remember ever [while using Delphi] being forced to implement a getter method in the "property ... implements..." line, but it seems that is the only way it remove memory leaks under FPC. Weird. :-/</blockquote><div><br></div><div>You don't need this getter. You have resolved just by change FHookInstance as a class, not an Interface, plus using TAggregatedObject too.</div><div><br></div><div>I wrote an article about it <a href="http://objectpascalprogramming.com/posts/interfaces-delegacao-problemas-solucoes/">http://objectpascalprogramming.com/posts/interfaces-delegacao-problemas-solucoes/</a> </div><div>(use Google Translator). </div><div><br></div><div>Best regards,</div><div>Marcos Douglas</div><div><br></div></div></div></div>