diff options
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 724b1e3..12cfe9d 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -6166,12 +6166,13 @@ AudioFlinger::DirectAudioTrack::~DirectAudioTrack() { mAudioFlinger->deleteEffectSession(); deallocateBufPool(); } + AudioSystem::releaseOutput(mOutput); releaseWakeLock(); + if (mPowerManager != 0) { sp<IBinder> binder = mPowerManager->asBinder(); binder->unlinkToDeath(mDeathRecipient); } - AudioSystem::releaseOutput(mOutput); } status_t AudioFlinger::DirectAudioTrack::start() { |