mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Memory leaks
This commit is contained in:
parent
6988756dda
commit
b912e73b6a
1 changed files with 3 additions and 1 deletions
|
|
@ -265,12 +265,14 @@ begin
|
|||
phicon := phIconLarge // Use large icon
|
||||
else
|
||||
phicon := phIconSmall; // Use small icon
|
||||
Icon:= CreateIconFromHandle(phicon);
|
||||
Icon:= CreateIconFromHandle(phIcon);
|
||||
bmStandartBitmap.Assign(Icon);
|
||||
Result:= StretchBitmap(bmStandartBitmap, iIconSize, clBackColor, True);
|
||||
finally
|
||||
FreeThenNil(Icon)
|
||||
end; // non standart size
|
||||
DestroyIcon(phIconLarge);
|
||||
DestroyIcon(phIconSmall);
|
||||
end // IsExecutable
|
||||
else
|
||||
{$ENDIF}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue