]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/bitmap.cpp
changed menu creation for choice and combobox (unique ids), control changed back...
[wxWidgets.git] / src / msw / bitmap.cpp
index df9dcd8c70d12b07dd5ece02d5d82154b2285bec..4f60c09474625650595524649c82711d1a84afd1 100644 (file)
@@ -144,6 +144,10 @@ bool wxBitmap::CopyFromIconOrCursor(const wxGDIImage& icon)
     refData->m_bitmapMask = new wxMask((WXHBITMAP)
                                         wxInvertMask(iconInfo.hbmMask, w, h));
 
+
+    // delete the old one now as we don't need it any more
+    ::DeleteObject(iconInfo.hbmMask);
+
 #if WXWIN_COMPATIBILITY_2
     refData->m_ok = TRUE;
 #endif // WXWIN_COMPATIBILITY_2