소스 검색

* fix memleak with top_local

peter 21 년 전
부모
커밋
a627c15298
1개의 변경된 파일5개의 추가작업 그리고 12개의 파일을 삭제
  1. 5 12
      compiler/aasmtai.pas

+ 5 - 12
compiler/aasmtai.pas

@@ -1617,17 +1617,7 @@ implementation
       begin
         for i:=0 to opercnt-1 do
           begin
-            with oper[i]^ do
-              begin
-                case typ of
-                  top_ref:
-                    dispose(ref);
-{$ifdef ARM}
-                  top_shifterop:
-                     dispose(shifterop);
-{$endif ARM}
-                end;
-              end;
+            clearop(i);
             dispose(oper[i]);
           end;
         inherited destroy;
@@ -2002,7 +1992,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.77  2004-03-14 20:10:56  peter
+  Revision 1.78  2004-03-14 22:47:56  peter
+    * fix memleak with top_local
+
+  Revision 1.77  2004/03/14 20:10:56  peter
     * disable some debuginfo info when valgrind support is used
 
   Revision 1.76  2004/03/02 17:32:12  florian