summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-02-06 18:58:54 +0000
committerStanislaw Halik <sthalik@misaki.pl>2013-02-06 18:58:54 +0000
commit02a628f187a6d0b51633d6ab97d45aa15183d7f8 (patch)
treed5d1df62766c51812121442d51f7a71ae1dc8ff1
parenta3d29dccd1b0f14ac2ee3e43f1d0c836f7b00a62 (diff)
One handle leak less
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@264 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
-rw-r--r--FaceTrackNoIR/tracker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/FaceTrackNoIR/tracker.cpp b/FaceTrackNoIR/tracker.cpp
index 1dd2cf1b..85e75756 100644
--- a/FaceTrackNoIR/tracker.cpp
+++ b/FaceTrackNoIR/tracker.cpp
@@ -424,6 +424,7 @@ bool bTracker2Confid = false;
if(::WaitForSingleObject(m_StopThread, 0) == WAIT_OBJECT_0)
{
dinkeyboard->Unacquire(); // Unacquire keyboard
+ dinkeyboard->Release();
din->Release(); // Release DirectInput
// Set event