[fpc-pascal] Where and Why is there a memory leak?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Sep 6 15:03:51 CEST 2017


On 2017-09-06 10:30, Ryan Joseph wrote:
> FHook := THook.Create;
> 
> so you need a FHook.Free call? The class is THook = class(TInterfacedObject, IHook) right?

I couldn't call .Free because FHook was a interface reference type of 
type IHook, not THook.


Regards,
   Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list