We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba108a9 commit 6fa585fCopy full SHA for 6fa585f
Src/Common/BCMenu.cpp
@@ -230,7 +230,9 @@ void BCMenuData::SetWideString(const wchar_t *szWideString)
230
void BCMenu::DisableOwnerDraw()
231
{
232
m_bEnableOwnerDraw = false;
233
- afxData.hbmMenuDot = reinterpret_cast<HBITMAP>(CreateRadioDotBitmap()->Detach());
+ CBitmap* pBitmap = CreateRadioDotBitmap();
234
+ afxData.hbmMenuDot = reinterpret_cast<HBITMAP>(pBitmap->Detach());
235
+ delete pBitmap;
236
}
237
238
bool BCMenu::IsMenu(HMENU submenu)
0 commit comments