diff options
author | Eric Laurent <elaurent@google.com> | 2011-12-13 10:13:59 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-12-13 10:13:59 -0800 |
commit | 4ed9775f49797a047ea2e96bd517d777e9e9767b (patch) | |
tree | 09585045a8628a54267f183a42ceba1c2ba0891a | |
parent | 276725c46e856f372a1fb5e56234943e865de5e3 (diff) | |
download | device_samsung_tuna-4ed9775f49797a047ea2e96bd517d777e9e9767b.zip device_samsung_tuna-4ed9775f49797a047ea2e96bd517d777e9e9767b.tar.gz device_samsung_tuna-4ed9775f49797a047ea2e96bd517d777e9e9767b.tar.bz2 |
audio HAL: release audio pre processing buffers.
Buffers allocated for audio pre processing are not released
when an input stream is closed.
Issue 5753047.
Change-Id: Ie8fd5f49d97e9bebc70fc38de0844a79074ac526
-rwxr-xr-x | audio/audio_hw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 55d221d..0ba9a41 100755 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -2457,6 +2457,10 @@ static void adev_close_input_stream(struct audio_hw_device *dev, free(in->buffer); release_resampler(in->resampler); } + if (in->proc_buf) + free(in->proc_buf); + if (in->ref_buf) + free(in->ref_buf); free(stream); return; |