Mercurial > mplayer.hg
changeset 28812:9dd2e47e5a06
Free af->setup and contents in af_resample uninit function.
author | reimar |
---|---|
date | Fri, 06 Mar 2009 11:46:06 +0000 |
parents | 7c0b23a811bd |
children | 113ae1bae806 |
files | libaf/af_resample.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af_resample.c Fri Mar 06 11:42:45 2009 +0000 +++ b/libaf/af_resample.c Fri Mar 06 11:46:06 2009 +0000 @@ -305,6 +305,13 @@ // Deallocate memory static void uninit(struct af_instance_s* af) { + af_resample_t *s = af->setup; + if (s) { + if (s->xq) free(s->xq[0]); + free(s->xq); + free(s->w); + free(s); + } if(af->data) free(af->data->audio); free(af->data);