From afa42a24be554ef6c50ba4626f27443fb91640e6 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 13 Dec 2020 00:48:13 +0000 Subject: [PATCH] fixed memory leak git-svn-id: svn://kolibrios.org@8382 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/obj/libimg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/cmm/lib/obj/libimg.h b/programs/cmm/lib/obj/libimg.h index d1450b59a9..71831f81e9 100644 --- a/programs/cmm/lib/obj/libimg.h +++ b/programs/cmm/lib/obj/libimg.h @@ -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