From 70d0f9359e89f2d593ec831f7d78db6dbca27fcd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 5 Jan 2002 01:25:09 +0000 Subject: [PATCH] fixed resource leak in CreateIconFromBitmap() (Dimitri) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/icon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/icon.cpp b/src/msw/icon.cpp index 8f27b61324..4e6eccd235 100644 --- a/src/msw/icon.cpp +++ b/src/msw/icon.cpp @@ -143,6 +143,9 @@ void wxIcon::CopyFromBitmap(const wxBitmap& bmp) // we created the mask, now delete it delete mask; } + + // delete the inverted mask bitmap we created as well + ::DeleteObject(iconInfo.hbmMask); #else // Win16 // there are some functions in curico.cpp which probably could be used // here... -- 2.50.0