https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d310df0dd24ebda3b2cc7…
commit d310df0dd24ebda3b2cc74ffd5214303143884bf
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Thu Oct 26 21:39:32 2017 +0300
[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
---
dll/win32/shell32/CDefView.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp
index b31044df07..f846cc1fd4 100644
--- a/dll/win32/shell32/CDefView.cpp
+++ b/dll/win32/shell32/CDefView.cpp
@@ -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);