mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00
[DXDIAG]
fix some memory leaks svn path=/trunk/; revision=67189
This commit is contained in:
parent
58e6b2e08a
commit
ad5812c3fd
1 changed files with 5 additions and 0 deletions
|
@ -288,6 +288,11 @@ DxDiagWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
break;
|
break;
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
DestroyTabCtrlDialogs(pContext);
|
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 DefWindowProc(hwndDlg, message, wParam, lParam);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue