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

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

am 43637c2e: Merge "fix memory leak in PatchPanel"

* commit '43637c2e':
  fix memory leak in PatchPanel
parents 69897ae4 43637c2e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -166,7 +166,9 @@ status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *pa
            if (*handle == mPatches[index]->mHandle) {
                ALOGV("createAudioPatch() removing patch handle %d", *handle);
                halHandle = mPatches[index]->mHalHandle;
                Patch *removedPatch = mPatches[index];
                mPatches.removeAt(index);
                delete removedPatch;
                break;
            }
        }