From f0b1d46e0ca58f762cbccac527937e0dd946512d Mon Sep 17 00:00:00 2001 From: Alexander Kutsan Date: Wed, 2 Apr 2014 16:57:02 +0300 Subject: [PATCH] APPLINK-6536 Core crash occurs after PerformAudioPassThru and then EndAudioPassThru --- src/components/application_manager/src/application_manager_impl.cc | 1 + .../src/commands/mobile/create_interaction_choice_set_request.cc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc index 8a06dba..698c383 100644 --- a/src/components/application_manager/src/application_manager_impl.cc +++ b/src/components/application_manager/src/application_manager_impl.cc @@ -614,6 +614,7 @@ void ApplicationManagerImpl::SendAudioPassThroughNotification( void ApplicationManagerImpl::StopAudioPassThru(int32_t application_key) { LOG4CXX_TRACE_ENTER(logger_); + sync_primitives::AutoLock lock(audio_pass_thru_lock_); if (NULL != media_manager_) { media_manager_->StopMicrophoneRecording(application_key); } diff --git a/src/components/application_manager/src/commands/mobile/create_interaction_choice_set_request.cc b/src/components/application_manager/src/commands/mobile/create_interaction_choice_set_request.cc index 7074826..c9f6093 100644 --- a/src/components/application_manager/src/commands/mobile/create_interaction_choice_set_request.cc +++ b/src/components/application_manager/src/commands/mobile/create_interaction_choice_set_request.cc @@ -171,8 +171,6 @@ mobile_apis::Result::eType CreateInteractionChoiceSetRequest::CheckChoiceSet( (*cur_set)[strings::choice_set].asArray(); smart_objects::SmartArray::const_iterator cur_choise_it; - - for (cur_choise_it = choices->begin(); cur_choise_it != choices->end(); ++cur_choise_it) { //vr_commands -- 2.7.4