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

Commit 4a8d260f authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: deleted FifoBuffers to fix memory leak

Bug: 64522125
Test: adb shell dumpsys media.audio_flinger --unreachable
Change-Id: I6045f951b4d793f31cac73e793258e168f74f3f2
parent e88fd530
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -32,14 +32,17 @@ using namespace aaudio;
#define RIDICULOUSLY_LARGE_FRAME_SIZE        4096

AudioEndpoint::AudioEndpoint()
    : mFreeRunning(false)
    : mUpCommandQueue(nullptr)
    , mDataQueue(nullptr)
    , mFreeRunning(false)
    , mDataReadCounter(0)
    , mDataWriteCounter(0)
{
}

AudioEndpoint::~AudioEndpoint()
{
AudioEndpoint::~AudioEndpoint() {
    delete mDataQueue;
    delete mUpCommandQueue;
}

static aaudio_result_t AudioEndpoint_validateQueueDescriptor(const char *type,