diff options
author | Eric Laurent <elaurent@google.com> | 2015-01-05 20:08:24 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-05 20:08:24 +0000 |
commit | 5111fe3ea0a5ba4fd0735535ae7e08a0c563353d (patch) | |
tree | 114803ffbd0fdc0e959caeced2ec04d96992829d /services/audioflinger | |
parent | 7d0fe65b0aa437d62c56653856a7cc79ee373a53 (diff) | |
parent | 645b0192ad5d9b46b06aa06ac5670a8390d35f6f (diff) | |
download | frameworks_av-5111fe3ea0a5ba4fd0735535ae7e08a0c563353d.zip frameworks_av-5111fe3ea0a5ba4fd0735535ae7e08a0c563353d.tar.gz frameworks_av-5111fe3ea0a5ba4fd0735535ae7e08a0c563353d.tar.bz2 |
am 645b0192: am 76758100: am 43637c2e: Merge "fix memory leak in PatchPanel"
* commit '645b0192ad5d9b46b06aa06ac5670a8390d35f6f':
fix memory leak in PatchPanel
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/PatchPanel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/PatchPanel.cpp b/services/audioflinger/PatchPanel.cpp index 7544052..4f0c6b1 100644 --- a/services/audioflinger/PatchPanel.cpp +++ b/services/audioflinger/PatchPanel.cpp @@ -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; } } |