mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:16:06 +02:00
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:
parent
ee59743851
commit
cc3a5e522f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user