[SHELL32] CDefView: Fix a leak of an HMENU. This fix is thanks to Joachim Henze who found the bug and quickly found the guilty revision. CORE-13911

This commit is contained in:
Giannis Adamopoulos 2017-10-26 21:39:32 +03:00
parent 27fe3d475f
commit d310df0dd2

View file

@ -2161,6 +2161,12 @@ HRESULT WINAPI CDefView::DestroyViewWindow()
m_hAccel = NULL;
}
if (m_hMenuArrangeModes)
{
DestroyMenu(m_hMenuArrangeModes);
m_hMenuArrangeModes = NULL;
}
if (m_hMenuViewModes)
{
DestroyMenu(m_hMenuViewModes);