fixed memory leak

git-svn-id: svn://kolibrios.org@8382 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2020-12-13 00:48:13 +00:00
parent 82dc2376da
commit afa42a24be
1 changed files with 2 additions and 0 deletions

View File

@ -294,6 +294,7 @@ struct libimg_image
static dword pure_img32;
if (!pure_img32) || (bg!=_bg) {
bg = _bg;
if (pure_img32) img_destroy stdcall(pure_img32);
img_from_file stdcall("/sys/icons32.png");
pure_img32 = EAX;
//now fill transparent with another color
@ -312,6 +313,7 @@ struct libimg_image
if (!pure_img16) || (bg!=_bg) {
bg = _bg;
bgshadow = MixColors(bg, 0, 220);
if (pure_img16) img_destroy stdcall(pure_img16);
img_from_file stdcall("/sys/icons16.png");
pure_img16 = EAX;
//now fill transparent with another color