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

Commit 756e75cf authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 090c60bb: Merge change I73b60354 into eclair

Merge commit '090c60bb' into eclair-mr2

* commit '090c60bb':
  AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.
parents e8341ebb 090c60bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1018,7 +1018,7 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTra
        Mutex::Autolock _l(mLock);
        track = new Track(this, client, streamType, sampleRate, format,
                channelCount, frameCount, sharedBuffer);
        if (track->getCblk() == NULL) {
        if (track->getCblk() == NULL || track->name() < 0) {
            lStatus = NO_MEMORY;
            goto Exit;
        }