mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 10:59:18 +02:00
* fixed (real)modulename memory leak when changing the module name
git-svn-id: trunk@21954 -
This commit is contained in:
parent
0a1157da38
commit
ba4b08261c
@ -965,6 +965,8 @@ implementation
|
|||||||
|
|
||||||
procedure tmodule.setmodulename(const s:string);
|
procedure tmodule.setmodulename(const s:string);
|
||||||
begin
|
begin
|
||||||
|
stringdispose(modulename);
|
||||||
|
stringdispose(realmodulename);
|
||||||
modulename:=stringdup(upper(s));
|
modulename:=stringdup(upper(s));
|
||||||
realmodulename:=stringdup(s);
|
realmodulename:=stringdup(s);
|
||||||
{ also update asmlibrary names }
|
{ also update asmlibrary names }
|
||||||
|
Loading…
Reference in New Issue
Block a user