From 19027f3c8187534b22aa9ffcb11976de7e7a5a4c Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Tue, 14 Mar 2023 12:08:50 +0900 Subject: [PATCH] [REGEDIT] Use HeapFree for g_pChildWnd, instead of free() --- base/applications/regedit/childwnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/applications/regedit/childwnd.c b/base/applications/regedit/childwnd.c index 96b313e7416..19c4cea780f 100644 --- a/base/applications/regedit/childwnd.c +++ b/base/applications/regedit/childwnd.c @@ -384,7 +384,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa DestroyTreeView(g_pChildWnd->hTreeWnd); DestroyMainMenu(); DestroyIcon(g_pChildWnd->hArrowIcon); - free(g_pChildWnd); + HeapFree(GetProcessHeap(), 0, g_pChildWnd); g_pChildWnd = NULL; PostQuitMessage(0); break;