* Deref old content of node in FPSList.put. Mantis #19854

git-svn-id: trunk@18063 -
This commit is contained in:
marco 2011-08-02 15:15:27 +00:00
parent 59e51c0bc2
commit 079831b50e

View File

@ -398,9 +398,13 @@ begin
end;
procedure TFPSList.Put(Index: Integer; Item: Pointer);
var p : Pointer;
begin
if (Index < 0) or (Index >= FCount) then
RaiseIndexError(Index);
p:=InternalItems[Index];
if assigned(p) then
DeRef(p);
InternalItems[Index] := Item;
end;