From: Alexander Kutsan Date: Wed, 2 Apr 2014 13:57:02 +0000 (+0300) Subject: APPLINK-6536 Core crash occurs after PerformAudioPassThru and then EndAudioPassThru X-Git-Tag: 3.5~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0b1d46e0ca58f762cbccac527937e0dd946512d;p=profile%2Fivi%2Fsmartdevicelink.git APPLINK-6536 Core crash occurs after PerformAudioPassThru and then EndAudioPassThru --- 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