Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e65c8911 authored by Eric Laurent's avatar Eric Laurent
Browse files

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
parent 76da2635
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -8056,7 +8056,7 @@ size_t AudioFlinger::EffectModule::removeHandle(EffectHandle *handle)
        mState = DESTROYED;
        mState = DESTROYED;
    }
    }


    return size;
    return mHandles.size();
}
}


// must be called with EffectModule::mLock held
// must be called with EffectModule::mLock held