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

Commit 39ebbc59 authored by Phil Burk's avatar Phil Burk Committed by Android (Google) Code Review
Browse files

Merge "aaudio: deleted FifoBuffers to fix memory leak" into oc-mr1-dev

parents 840f6990 4a8d260f
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,