summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/media_manager/src/audio/from_mic_recorder_adapter.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc b/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc
index 1060f06a27..ef9d5b8de6 100644
--- a/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc
+++ b/src/components/media_manager/src/audio/from_mic_recorder_adapter.cc
@@ -90,7 +90,10 @@ void FromMicRecorderAdapter::StopActivity(int32_t application_key) {
}
if (recorder_thread_) {
- recorder_thread_->stop();
+ recorder_thread_->join();
+ delete recorder_thread_->delegate();
+ threads::DeleteThread(recorder_thread_);
+ recorder_thread_ = NULL;
}
current_application_ = 0;
}