Author: cwittich
Date: Tue Apr 14 07:41:24 2015
New Revision: 67189
URL:
http://svn.reactos.org/svn/reactos?rev=67189&view=rev
Log:
[DXDIAG]
fix some memory leaks
Modified:
trunk/reactos/base/applications/dxdiag/dxdiag.c
Modified: trunk/reactos/base/applications/dxdiag/dxdiag.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/dxdiag/d…
==============================================================================
--- trunk/reactos/base/applications/dxdiag/dxdiag.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/dxdiag/dxdiag.c [iso-8859-1] Tue Apr 14 07:41:24 2015
@@ -288,6 +288,11 @@
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;