Parcourir la source

* fixed (real)modulename memory leak when changing the module name

git-svn-id: trunk@21954 -
Jonas Maebe il y a 13 ans
Parent
commit
ba4b08261c
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      compiler/fmodule.pas

+ 2 - 0
compiler/fmodule.pas

@@ -965,6 +965,8 @@ implementation
 
     procedure tmodule.setmodulename(const s:string);
       begin
+        stringdispose(modulename);
+        stringdispose(realmodulename);
         modulename:=stringdup(upper(s));
         realmodulename:=stringdup(s);
         { also update asmlibrary names }