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

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

am aee1c89f: Merge "DO NOT MERGE - fix memory leak in PatchPanel" into lmp-mr1-dev

* commit 'aee1c89f':
  DO NOT MERGE - fix memory leak in PatchPanel
parents d376f508 aee1c89f
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;
            }
        }