mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 05:19:31 +02:00
LCL: Fixed of changing StaticText caption increase memory. Issue #31204
git-svn-id: trunk@53898 -
This commit is contained in:
parent
b824d5d512
commit
751e771242
@ -6389,7 +6389,10 @@ begin
|
||||
end;
|
||||
ReallocMem(Lines, 0);
|
||||
If TmpStr <> nil then
|
||||
Result := StrNew(TmpStr^.str)
|
||||
begin
|
||||
Result := StrNew(TmpStr^.str);
|
||||
g_string_free(TmpStr, True);
|
||||
end
|
||||
else
|
||||
Result:=nil;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user