From 657ff61389d7316f798d4abe03efac56fd528d91 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Wed, 7 May 2014 11:58:24 -0700 Subject: audio policy: cleanup AudioPolicyService destructor No need to clear strong pointers in the destuctor. Add explicit exit() command to mOutputCommandThread. Change-Id: I60bb248fe6a20bfd8a55358ef139692b93df0238 --- services/audiopolicy/AudioPolicyService.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'services/audiopolicy') diff --git a/services/audiopolicy/AudioPolicyService.cpp b/services/audiopolicy/AudioPolicyService.cpp index 918c25c..2811475 100644 --- a/services/audiopolicy/AudioPolicyService.cpp +++ b/services/audiopolicy/AudioPolicyService.cpp @@ -122,10 +122,8 @@ AudioPolicyService::AudioPolicyService() AudioPolicyService::~AudioPolicyService() { mTonePlaybackThread->exit(); - mTonePlaybackThread.clear(); mAudioCommandThread->exit(); - mAudioCommandThread.clear(); - + mOutputCommandThread->exit(); // release audio pre processing resources for (size_t i = 0; i < mInputSources.size(); i++) { -- cgit v1.1