summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-01-05 19:56:47 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-05 19:56:47 +0000
commit76758100c85622c178355959e454651310ea0011 (patch)
tree1f417c3cee2806a8276efca34fde9b9bd1d6532e /services/audioflinger
parent69897ae4889328807760ea359ee62efffdaca933 (diff)
parent43637c2e0313ed9fea4e4aceb14c166349327aea (diff)
downloadframeworks_av-76758100c85622c178355959e454651310ea0011.zip
frameworks_av-76758100c85622c178355959e454651310ea0011.tar.gz
frameworks_av-76758100c85622c178355959e454651310ea0011.tar.bz2
am 43637c2e: Merge "fix memory leak in PatchPanel"
* commit '43637c2e0313ed9fea4e4aceb14c166349327aea': fix memory leak in PatchPanel
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/PatchPanel.cpp2
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;
}
}