Skip to content

Commit

Permalink
audio HAL: release audio pre processing buffers.
Browse files Browse the repository at this point in the history
Buffers allocated for audio pre processing are not released
when an input stream is closed.

Issue 5753047.

Change-Id: Ie8fd5f49d97e9bebc70fc38de0844a79074ac526
  • Loading branch information
Eric Laurent committed Dec 13, 2011
1 parent ad025cc commit 7a170e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions audio/audio_hw.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7a170e1

Please sign in to comment.