mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 10:51:08 +02:00
* fixed memory leaks
git-svn-id: branches/jvmbackend@18598 -
This commit is contained in:
parent
ce88df680b
commit
f3f378496f
@ -86,14 +86,18 @@ implementation
|
|||||||
ccallparanode.create(p,nil)));
|
ccallparanode.create(p,nil)));
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
begin
|
||||||
|
p.free;
|
||||||
{ records/arrays/... are automatically initialised }
|
{ records/arrays/... are automatically initialised }
|
||||||
result:=cnothingnode.create;
|
result:=cnothingnode.create;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
class function tjvmnodeutils.finalize_data_node(p:tnode):tnode;
|
class function tjvmnodeutils.finalize_data_node(p:tnode):tnode;
|
||||||
begin
|
begin
|
||||||
// do nothing
|
// do nothing
|
||||||
|
p.free;
|
||||||
result:=cnothingnode.create;
|
result:=cnothingnode.create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user