mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 22:19:18 +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
|
for i := 0 to FImageList.Count - 1 do
|
||||||
begin
|
begin
|
||||||
// todo: we have no jpeg 2000 reader to decompress their data => skip for now
|
|
||||||
if FImageList[i]^.IconType in icnsWithAlpha then
|
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;
|
Continue;
|
||||||
|
end;
|
||||||
|
|
||||||
// Add image
|
// Add image
|
||||||
with TSharedIcon(FSharedImage) do
|
with TSharedIcon(FSharedImage) do
|
||||||
|
Loading…
Reference in New Issue
Block a user