X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ce946d47ef03fcf330b0a28c0ff815ea480da55..622be94c78deeae8490d9783c11a24c599ae1464:/src/mac/bitmap.cpp diff --git a/src/mac/bitmap.cpp b/src/mac/bitmap.cpp index 979f39a79b..9e47fe6728 100644 --- a/src/mac/bitmap.cpp +++ b/src/mac/bitmap.cpp @@ -201,6 +201,7 @@ wxBitmapRefData::wxBitmapRefData() m_bitmapMask = NULL; m_hBitmap = NULL ; m_hPict = NULL ; + m_hIcon = NULL ; m_bitmapType = kMacBitmapTypeUnknownType ; } @@ -226,6 +227,13 @@ wxBitmapRefData::~wxBitmapRefData() } } break ; + case kMacBitmapTypeIcon : + if ( m_hIcon ) + { + DisposeCIcon( m_hIcon ) ; + m_hIcon = NULL ; + } + default : // unkown type ? break ; @@ -488,7 +496,7 @@ void wxBitmap::SetHBITMAP(WXHBITMAP bmp) { M_BITMAPDATA->m_bitmapType = kMacBitmapTypeGrafWorld ; M_BITMAPDATA->m_hBitmap = bmp ; - M_BITMAPDATA->m_ok = (M_BITMAPDATA->m_hBitmap != NULL ) ; + M_BITMAPDATA->m_ok = (M_BITMAPDATA->m_hBitmap != NULL ) ; } bool wxBitmap::LoadFile(const wxString& filename, long type)