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

Commit 0c5c9743 authored by Andy Hung's avatar Andy Hung Committed by Android Git Automerger
Browse files

am 0907d87d: Merge "Fix AudioRecord cleanup if construction fails" into mnc-dev

* commit '0907d87d':
  Fix AudioRecord cleanup if construction fails
parents 846a2a7f 0907d87d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1951,7 +1951,9 @@ AudioFlinger::RecordThread::RecordTrack::RecordTrack(
                          ((buffer == NULL) ? ALLOC_LOCAL : ALLOC_NONE),
                  type),
        mOverflow(false),
        mFramesToDrop(0)
        mFramesToDrop(0),
        mResamplerBufferProvider(NULL), // initialize in case of early constructor exit
        mRecordBufferConverter(NULL)
{
    if (mCblk == NULL) {
        return;