mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-01 12:13:46 +02:00
* fixed TCmdStrListItem.GetCopy() (the reference count of the ansistring
field was messed up due to the use of "move()" to copy all field data) git-svn-id: trunk@17270 -
This commit is contained in:
parent
03ca42d6e2
commit
66258fb0b8
@ -2208,6 +2208,9 @@ end;
|
||||
function TCmdStrListItem.GetCopy:TLinkedListItem;
|
||||
begin
|
||||
Result:=(inherited GetCopy);
|
||||
{ TLinkedListItem.GetCopy performs a "move" to copy all data -> reinit
|
||||
the ansistring, so the refcount is properly increased }
|
||||
Initialize(TCmdStrListItem(Result).FPStr);
|
||||
TCmdStrListItem(Result).FPStr:=FPstr;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user