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

Ryan Joseph ryan at thealchemistguild.com
Wed Sep 6 11:30:11 CEST 2017

Didn’t you say:

FHook := THook.Create; 

so you need a FHook.Free call? The class is THook = class(TInterfacedObject, IHook) right?

> On Sep 6, 2017, at 4:24 PM, Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:
> I changed the destructor to the code shown below. Just so you know, I tried this before I posted the message, and it didn't make any difference. FHook is a IHook interface reference, not a object reference. I can't change it either, otherwise FPC gives me a compiler error on the property ... implements...; line.

	Ryan Joseph

More information about the fpc-pascal mailing list