lcl: fix a memory leak in the icns reader (when we tried to load an icon contained 256x256, 512x512 images with alpha)

git-svn-id: trunk@17695 -
This commit is contained in:
paul 2008-12-05 18:02:23 +00:00
parent ee59743851
commit cc3a5e522f

View File

@ -129,9 +129,12 @@ begin
for i := 0 to FImageList.Count - 1 do
begin
// todo: we have no jpeg 2000 reader to decompress their data => skip for now
if FImageList[i]^.IconType in icnsWithAlpha then
begin
// todo: we have no jpeg 2000 reader to decompress their data => skip for now
FImageList[i]^.RawImage.FreeData;
Continue;
end;
// Add image
with TSharedIcon(FSharedImage) do