Browse Source

* Fixed memory leak in classes with interfaces

git-svn-id: trunk@22094 -
michael 13 years ago
parent
commit
b26797e818
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-passrc/src/pastree.pp

+ 2 - 0
packages/fcl-passrc/src/pastree.pp

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