From 436289f622bb861e3004b9d7639a8f3cd3f5f48d Mon Sep 17 00:00:00 2001 From: "mflodman@webrtc.org" Date: Wed, 7 Sep 2011 08:41:57 +0000 Subject: [PATCH] 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 --- .../main/test/AutoTest/source/vie_autotest_linux.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/video_engine/main/test/AutoTest/source/vie_autotest_linux.cc b/src/video_engine/main/test/AutoTest/source/vie_autotest_linux.cc index 8f5f66e656..a17d399716 100644 --- a/src/video_engine/main/test/AutoTest/source/vie_autotest_linux.cc +++ b/src/video_engine/main/test/AutoTest/source/vie_autotest_linux.cc @@ -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; }