diff options
Diffstat (limited to 'src/components/media_manager/src/audio/from_mic_recorder_listener.cc')
-rw-r--r-- | src/components/media_manager/src/audio/from_mic_recorder_listener.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/media_manager/src/audio/from_mic_recorder_listener.cc b/src/components/media_manager/src/audio/from_mic_recorder_listener.cc index 06dce2d4ea..2d305d98b0 100644 --- a/src/components/media_manager/src/audio/from_mic_recorder_listener.cc +++ b/src/components/media_manager/src/audio/from_mic_recorder_listener.cc @@ -46,9 +46,11 @@ FromMicRecorderListener::FromMicRecorderListener( } FromMicRecorderListener::~FromMicRecorderListener() { + LOG4CXX_AUTO_TRACE(logger_); if (reader_) { - reader_->stop(); - reader_ = NULL; + reader_->join(); + delete reader_->delegate(); + threads::DeleteThread(reader_); } } @@ -89,7 +91,6 @@ void FromMicRecorderListener::OnActivityEnded(int32_t application_key) { } if (reader_) { reader_->stop(); - reader_ = NULL; } current_application_ = 0; } |