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

Commit 43637c2e authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "fix memory leak in PatchPanel"

parents 75afcc1f d8cd4779
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;
            }
        }