mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 09:38:12 +02:00
ide: fix memory leak in imagelist editor
git-svn-id: trunk@12558 -
This commit is contained in:
parent
3e3e217a58
commit
3be134f57d
@ -321,6 +321,7 @@ begin
|
||||
ImageList.Insert(TreeView.Selected.ImageIndex, T, nil);
|
||||
finally
|
||||
ImageList.EndUpdate;
|
||||
T.Free;
|
||||
end;
|
||||
|
||||
TreeView.Invalidate;
|
||||
|
@ -127,7 +127,7 @@ class procedure TWin32WSCustomImageList.AddData(AListHandle: TLCLIntfHandle; ACo
|
||||
|
||||
DataCount := AWidth * AHeight;
|
||||
DataSize := DataCount * SizeOf(AData^);
|
||||
while ACOunt > 0 do
|
||||
while ACount > 0 do
|
||||
begin
|
||||
System.Move(AData^, BitsPtr^, DataSize);
|
||||
if AReplaceIndex = -1
|
||||
|
Loading…
Reference in New Issue
Block a user