mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-27 00:09:39 +02:00
* Fixed memory leak in classes with interfaces
git-svn-id: trunk@22094 -
This commit is contained in:
parent
b8ab3d48f6
commit
b26797e818
@ -1659,6 +1659,8 @@ var
|
||||
begin
|
||||
for i := 0 to Members.Count - 1 do
|
||||
TPasElement(Members[i]).Release;
|
||||
for i := 0 to Interfaces.Count - 1 do
|
||||
TPasElement(Interfaces[i]).Release;
|
||||
Members.Free;
|
||||
if Assigned(AncestorType) then
|
||||
AncestorType.Release;
|
||||
|
Loading…
Reference in New Issue
Block a user