summaryrefslogtreecommitdiffstats
path: root/audio/audio_hw.c
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-12-13 10:46:15 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-12-13 10:46:15 -0800
commit620c8ad611fee5de98f778514c0418c1f48903e5 (patch)
tree8ca53ca97c97e0d60f2f5522f9aea45b496c7691 /audio/audio_hw.c
parent291eb0e708c68e4cc74b10ae0aeaf6ed7e093e07 (diff)
parent4ed9775f49797a047ea2e96bd517d777e9e9767b (diff)
downloaddevice_samsung_tuna-620c8ad611fee5de98f778514c0418c1f48903e5.zip
device_samsung_tuna-620c8ad611fee5de98f778514c0418c1f48903e5.tar.gz
device_samsung_tuna-620c8ad611fee5de98f778514c0418c1f48903e5.tar.bz2
am 7a170e19: audio HAL: release audio pre processing buffers.
* commit '4ed9775f49797a047ea2e96bd517d777e9e9767b': audio HAL: release audio pre processing buffers.
Diffstat (limited to 'audio/audio_hw.c')
-rwxr-xr-xaudio/audio_hw.c4
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;