https://git.reactos.org/?p=reactos.git;a=commitdiff;h=19027f3c8187534b22aa9f...
commit 19027f3c8187534b22aa9ffcb11976de7e7a5a4c Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Tue Mar 14 12:08:50 2023 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Tue Mar 14 12:08:50 2023 +0900
[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;