[REGEDIT] Use HeapFree for g_pChildWnd, instead of free()

This commit is contained in:
Katayama Hirofumi MZ 2023-03-14 12:08:50 +09:00
parent 0a1d467a11
commit 19027f3c81

View file

@ -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;