Fixed memory leak when setting new wxMask for wxBitmap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-04-16 09:54:23 +00:00
parent 464242f3d1
commit a593039f68
2 changed files with 2 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ wxMSW:
hotkey
- fix for multiple consecutive groups of radiobuttons
- fix for incorrect display of tooltips in non English locales (Niki Spahiev)
- fixed memory leak when setting new wxMask for wxBitmap
wxMotif:

View File

@@ -1088,6 +1088,7 @@ void wxBitmap::SetMask(wxMask *mask)
{
EnsureHasData();
delete GetBitmapData()->m_bitmapMask ;
GetBitmapData()->m_bitmapMask = mask;
}