Explorar o código

* don't call DoneDebugInfo twice in tmodule.reset
* call DoneDebugInfo in tmodule.destroy (fixes all remaining dwarf
memory leaks)

git-svn-id: trunk@9526 -

Jonas Maebe %!s(int64=17) %!d(string=hai) anos
pai
achega
d740304b77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/fmodule.pas

+ 1 - 1
compiler/fmodule.pas

@@ -553,6 +553,7 @@ implementation
                procinfo:=hpi;
              end;
           end;
+        DoneDebugInfo(self);
         used_units.free;
         dependent_units.free;
         resourcefiles.Free;
@@ -682,7 +683,6 @@ implementation
         sourcefiles.free;
         sourcefiles:=tinputfilemanager.create;
         asmdata:=TAsmData.create(realmodulename^);
-        DoneDebugInfo(self);
         InitDebugInfo(self);
         _exports.free;
         _exports:=tlinkedlist.create;