mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 21:09:11 +02:00
* fixed memory leak, introduced accidentally in r48998
git-svn-id: trunk@49084 -
This commit is contained in:
parent
803402b225
commit
8ec71bc810
@ -861,9 +861,18 @@ implementation
|
|||||||
if assigned(current_module) and current_module.in_interface then
|
if assigned(current_module) and current_module.in_interface then
|
||||||
begin
|
begin
|
||||||
if readprocdef.proctypeoption=potype_propgetter then
|
if readprocdef.proctypeoption=potype_propgetter then
|
||||||
readprocdef.register_def;
|
readprocdef.register_def
|
||||||
|
else
|
||||||
|
readprocdef.free;
|
||||||
if writeprocdef.proctypeoption=potype_propsetter then
|
if writeprocdef.proctypeoption=potype_propsetter then
|
||||||
writeprocdef.register_def;
|
writeprocdef.register_def
|
||||||
|
else
|
||||||
|
writeprocdef.free;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
readprocdef.free;
|
||||||
|
writeprocdef.free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
result:=p;
|
result:=p;
|
||||||
|
Loading…
Reference in New Issue
Block a user