From e65c89113232d070dd9153c54ca19301bca7a162 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Fri, 20 Jul 2012 15:57:23 -0700 Subject: fix audio effect not destroyed when needed. commit a5f44eba contained an error which made that audio effect modules where not destroyed but left in the destroyed state rendering them unuseable after being released. Bug 6805168. Change-Id: Ia4e683b3c970ffd01846c482fde73d799ff219de --- services/audioflinger/AudioFlinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/audioflinger/AudioFlinger.cpp') diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index ffb00e7..424d8bc 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -8056,7 +8056,7 @@ size_t AudioFlinger::EffectModule::removeHandle(EffectHandle *handle) mState = DESTROYED; } - return size; + return mHandles.size(); } // must be called with EffectModule::mLock held -- cgit v1.1