LCL: Fixed of changing StaticText caption increase memory. Issue #31204

git-svn-id: trunk@53898 -
This commit is contained in:
michl 2017-01-08 11:45:08 +00:00
parent b824d5d512
commit 751e771242

View File

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