diff options
author | Eric Laurent <elaurent@google.com> | 2015-01-15 23:00:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-01-15 23:00:46 +0000 |
commit | 21291a420e11ccdf23e955c3dc390304230ddce3 (patch) | |
tree | 5d3495362261003fb53836cf541467e65b1a0b39 /services/audiopolicy | |
parent | 5b578beca7c835c0c49f8f93219cf4d2f82057e3 (diff) | |
parent | 182c2f5e48f46c11dbcb5eecb46268dff4ad4797 (diff) | |
download | frameworks_av-21291a420e11ccdf23e955c3dc390304230ddce3.zip frameworks_av-21291a420e11ccdf23e955c3dc390304230ddce3.tar.gz frameworks_av-21291a420e11ccdf23e955c3dc390304230ddce3.tar.bz2 |
Merge "fix leak in audio policy effect config parser" into lmp-mr1-dev
Diffstat (limited to 'services/audiopolicy')
-rw-r--r-- | services/audiopolicy/AudioPolicyEffects.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyEffects.cpp b/services/audiopolicy/AudioPolicyEffects.cpp index 4fbe042..e6ace20 100644 --- a/services/audiopolicy/AudioPolicyEffects.cpp +++ b/services/audiopolicy/AudioPolicyEffects.cpp @@ -658,6 +658,10 @@ status_t AudioPolicyEffects::loadAudioEffectConfig(const char *path) loadInputEffectConfigurations(root, effects); loadStreamEffectConfigurations(root, effects); + for (size_t i = 0; i < effects.size(); i++) { + delete effects[i]; + } + config_free(root); free(root); free(data); |