fix some memory leaks

svn path=/trunk/; revision=67189
This commit is contained in:
Christoph von Wittich 2015-04-14 07:41:24 +00:00
parent 58e6b2e08a
commit ad5812c3fd

View file

@ -288,6 +288,11 @@ DxDiagWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
break;
case WM_DESTROY:
DestroyTabCtrlDialogs(pContext);
if (pContext->hDisplayWnd)
HeapFree(GetProcessHeap(), 0, pContext->hDisplayWnd);
if (pContext->hSoundWnd)
HeapFree(GetProcessHeap(), 0, pContext->hSoundWnd);
HeapFree(GetProcessHeap(), 0, pContext);
return DefWindowProc(hwndDlg, message, wParam, lParam);
}
return 0;