diff options
author | Eric Laurent <elaurent@google.com> | 2014-05-07 11:58:24 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-05-07 11:58:24 -0700 |
commit | 657ff61389d7316f798d4abe03efac56fd528d91 (patch) | |
tree | 9481cad78a4b2adeb25587c3838ad4357ad2da54 /services | |
parent | 5e0e2316578b8b9eccdf4002951d6e9cd96adaac (diff) | |
download | frameworks_av-657ff61389d7316f798d4abe03efac56fd528d91.zip frameworks_av-657ff61389d7316f798d4abe03efac56fd528d91.tar.gz frameworks_av-657ff61389d7316f798d4abe03efac56fd528d91.tar.bz2 |
audio policy: cleanup AudioPolicyService destructor
No need to clear strong pointers in the destuctor.
Add explicit exit() command to mOutputCommandThread.
Change-Id: I60bb248fe6a20bfd8a55358ef139692b93df0238
Diffstat (limited to 'services')
-rw-r--r-- | services/audiopolicy/AudioPolicyService.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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++) { |