mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 10:29:21 +02:00
* fixed memory leak
git-svn-id: trunk@42101 -
This commit is contained in:
parent
eb0f02348d
commit
4c34b7b67d
@ -1141,7 +1141,7 @@ implementation
|
||||
hp2:=cloadnode.create_procvar(tprocsym(tcallnode(hp).symtableprocentry),currprocdef,tcallnode(hp).symtableproc);
|
||||
if (po_methodpointer in pv.procoptions) then
|
||||
tloadnode(hp2).set_mp(tcallnode(hp).methodpointer.getcopy);
|
||||
hp.destroy;
|
||||
hp.free;
|
||||
{ replace the old callnode with the new loadnode }
|
||||
hpp^:=hp2;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user