mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[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:
parent
27fe3d475f
commit
d310df0dd2
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue