[fpc-pascal] methods of an object to create others objects
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Jul 5 22:30:46 CEST 2010
On Mon, 5 Jul 2010 17:26:52 -0300
Marcos Douglas <md at delfire.net> wrote:
>[...]
> But if a remove the variable *someObj* and call like this:
> myObj.createObj; // I _removed_ the *someObj* here!!!
>
> What will happen with the "result" variable? Is it released by the compiler?
No. This will create a mem leak.
Mattias
More information about the fpc-pascal
mailing list