Quick fix so ViE autotest doesn't terminate Linux windows twice on exit.

Review URL: http://webrtc-codereview.appspot.com/131016

git-svn-id: http://webrtc.googlecode.com/svn/trunk@544 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2011-09-07 08:41:57 +00:00
parent 2d9af90116
commit 436289f622

View File

@ -44,13 +44,15 @@ void* ViEAutoTestWindowManager::GetWindow2()
int ViEAutoTestWindowManager::TerminateWindows()
{
if (_hwnd1)
if (_hdsp1)
{
ViEDestroyWindow(&_hwnd1, _hdsp1);
_hdsp1 = NULL;
}
if (_hwnd2)
if (_hdsp2)
{
ViEDestroyWindow(&_hwnd2, _hdsp2);
_hdsp2 = NULL;
}
return 0;
}