LCL: ImageList: call DestroyReference in Clear. Resolves Issue #0029905.

git-svn-id: trunk@52077 -
This commit is contained in:
bart 2016-03-28 13:57:56 +00:00
parent 9ea2b541f4
commit ddef968c2b

View File

@ -388,6 +388,9 @@ begin
if FCount = 0 then Exit;
if HandleAllocated
then TWSCustomImageListClass(WidgetSetClass).Clear(Self);
{$ifdef windows}
DestroyReference; //Issue #0029905: images added after clear aren't shown if width or height changed
{$endif}
SetLength(FData, 0);
FAllocCount := 0;
ClearOverlays;