changeset 13955:d9bdae1d1c04

Free WAVEFORMATEX in sh_audio when all other sh_audio members are freed.
author iive
date Mon, 15 Nov 2004 15:05:12 +0000
parents 7dfda76015c8
children 5d8f11a627ae
files libmpcodecs/dec_audio.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/dec_audio.c	Mon Nov 15 15:04:57 2004 +0000
+++ b/libmpcodecs/dec_audio.c	Mon Nov 15 15:05:12 2004 +0000
@@ -252,6 +252,8 @@
     sh_audio->a_buffer=NULL;
     if(sh_audio->a_in_buffer) free(sh_audio->a_in_buffer);
     sh_audio->a_in_buffer=NULL;
+    if(sh_audio->wf) free(sh_audio->wf);
+    sh_audio->wf=NULL;
 }
 
  /* Init audio filters */