diff --git a/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc b/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc index 2993be156e..5e0642ad80 100644 --- a/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc +++ b/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc @@ -829,7 +829,6 @@ int ViEAutoTest::ViECustomCall() { error = vie_base->DisconnectAudioChannel(video_channel); voice_channel_transport.reset(NULL); - video_channel_transport.reset(NULL); // If Encoder/Decoder Observer is running, delete them. if (codec_encoder_observer) { @@ -892,6 +891,8 @@ int ViEAutoTest::ViECustomCall() { "ERROR: %s at line %d", __FUNCTION__, __LINE__); + video_channel_transport.reset(NULL); + error = vie_base->DeleteChannel(video_channel); number_of_errors += ViETest::TestError(error == 0, "ERROR: %s at line %d",