* Fixed memory leak in classes with interfaces

git-svn-id: trunk@22094 -
This commit is contained in:
michael 2012-08-15 16:14:09 +00:00
parent b8ab3d48f6
commit b26797e818

View File

@ -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;