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

git-svn-id: trunk@21954 -
This commit is contained in:
Jonas Maebe 2012-07-23 13:49:36 +00:00
parent 0a1157da38
commit ba4b08261c

View File

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