mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* Prevent Move from freeing an associated object if OwnsObjects=True (reported on sourceforge)
git-svn-id: trunk@22992 -
This commit is contained in:
parent
29609ee37b
commit
4ecfde31e1
@ -868,6 +868,7 @@ begin
|
||||
BeginUpdate;
|
||||
Obj:=Objects[CurIndex];
|
||||
Str:=Strings[CurIndex];
|
||||
Objects[CurIndex]:=Nil; // Prevent Delete from freeing.
|
||||
Delete(Curindex);
|
||||
InsertObject(NewIndex,Str,Obj);
|
||||
EndUpdate;
|
||||
|
Loading…
Reference in New Issue
Block a user