summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Nosach <ANosach@luxoft.com>2015-03-08 21:50:09 +0200
committerArtem Nosach <ANosach@luxoft.com>2015-04-23 15:30:57 +0300
commit507f4931f42a9d1c2a0305e3346ace1f3d8c8ec4 (patch)
tree6944fce08c9998862f3270f3643caf1c8437dd63
parent89db5de20922dd79133ec885a9ef01d881e2eb41 (diff)
downloadsdl_core-507f4931f42a9d1c2a0305e3346ace1f3d8c8ec4.tar.gz
Delete recorder thread on StopActivity().
-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;
}