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

Commit 2e75c84b authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

Merge "audio flinger: fix audio patch release" into nyc-dev

am: 52907665

* commit '52907665':
  audio flinger: fix audio patch release

Change-Id: I81ee603009438e24399af8fe1b5118b90b045c48
parents 394040d4 52907665
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -168,6 +168,12 @@ status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *pa
                ALOGV("createAudioPatch() removing patch handle %d", *handle);
                halHandle = mPatches[index]->mHalHandle;
                Patch *removedPatch = mPatches[index];
                if ((removedPatch->mRecordPatchHandle
                        != AUDIO_PATCH_HANDLE_NONE) ||
                        (removedPatch->mPlaybackPatchHandle !=
                                AUDIO_PATCH_HANDLE_NONE)) {
                    clearPatchConnections(removedPatch);
                }
                mPatches.removeAt(index);
                delete removedPatch;
                break;