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

Commit 71085cbb authored by Harish Mahendrakar's avatar Harish Mahendrakar
Browse files

Reverb: Initialize reverb handle to NULL

Bug: 324355054
Test: atest VtsHalAudioEffectTargetTest with ASAN

Change-Id: I8ab1a1a1408313ba8dd68b4d4783df36bcd2ccb0
parent a188d5ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -161,7 +161,7 @@ class ReverbContext final : public EffectContext {
    std::mutex mMutex;
    std::mutex mMutex;
    const lvm::ReverbEffectType mType;
    const lvm::ReverbEffectType mType;
    bool mEnabled = false;
    bool mEnabled = false;
    LVREV_Handle_t mInstance GUARDED_BY(mMutex);
    LVREV_Handle_t mInstance GUARDED_BY(mMutex) = LVM_NULL;


    int mRoomLevel = 0;
    int mRoomLevel = 0;
    int mRoomHfLevel = 0;
    int mRoomHfLevel = 0;