[fpc-pascal] Memory leak
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Dec 18 15:52:52 CET 2011
On 18 Dec 2011, at 15:45, dhkblaszyk at zeelandnet.nl wrote:
> It was an
> ansistring indeed, and finalize did the trick! Thanks for your help. How
> does New and Dispose work btw? Do they use RTTI to call finalize
> appropriatly?
Yes.
> I tried searching the New and Dispose implementations in
> the RTL sources, but I just could not find them. What unit are they in?
They are compiler internals. The compiler translates them into an appropriate combination of getmem/initialize or finalize/freemem.
Jonas
More information about the fpc-pascal
mailing list