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

Commit c95ca2c2 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

AudioFlinger new can't fail

Change-Id: I7dae05a5ea1c962a9975386eab1fedbbe106ffba
parent a8719ad9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3238,7 +3238,7 @@ AudioFlinger::ThreadBase::TrackBase::TrackBase(
        }
   } else {
       mCblk = (audio_track_cblk_t *)(new uint8_t[size]);
       if (mCblk) { // construct the shared structure in-place.
           // construct the shared structure in-place.
           new(mCblk) audio_track_cblk_t();
           // clear all buffers
           mCblk->frameCount = frameCount;
@@ -3253,7 +3253,6 @@ AudioFlinger::ThreadBase::TrackBase::TrackBase(
           mBufferEnd = (uint8_t *)mBuffer + bufferSize;
   }
}
}

AudioFlinger::ThreadBase::TrackBase::~TrackBase()
{