OSDN Git Service

audio policy: cleanup AudioPolicyService destructor
authorEric Laurent <elaurent@google.com>
Wed, 7 May 2014 18:58:24 +0000 (11:58 -0700)
committerEric Laurent <elaurent@google.com>
Wed, 7 May 2014 18:58:24 +0000 (11:58 -0700)
No need to clear strong pointers in the destuctor.
Add explicit exit() command to mOutputCommandThread.

Change-Id: I60bb248fe6a20bfd8a55358ef139692b93df0238

services/audiopolicy/AudioPolicyService.cpp

index 918c25c..2811475 100644 (file)
@@ -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++) {