Selaa lähdekoodia

* Don't use dispose for memory allocated with getmem.

git-svn-id: trunk@11446 -
yury 17 vuotta sitten
vanhempi
commit
453e82e001
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      compiler/ncgrtti.pas

+ 4 - 4
compiler/ncgrtti.pas

@@ -982,8 +982,8 @@ implementation
                 end;
               asmlists[al_rtti].concat(Tai_symbol_end.create(rttilab));
             end;
-          dispose(syms);
-          dispose(offsets);
+          freemem(syms);
+          freemem(offsets);
         end;
 
         procedure enumdef_rtti_string2ordindex(def:Tenumdef);
@@ -1074,8 +1074,8 @@ implementation
                 end;
               asmlists[al_rtti].concat(Tai_symbol_end.create(rttilab));
             end;
-          dispose(syms);
-          dispose(offsets);
+          freemem(syms);
+          freemem(offsets);
         end;
 
     begin