summaryrefslogtreecommitdiff
path: root/src/libxineadec/adpcm.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2002-11-03 06:08:54 +0000
committerMike Melanson <mike@multimedia.cx>2002-11-03 06:08:54 +0000
commit798c5cedd0c4ff668553a3400dd76286494d1a2a (patch)
tree9151d36fb3e3fd6277956b7e8ca8fdc1dc8c7ce9 /src/libxineadec/adpcm.c
parent3020f4893918598c24daef738651281ce9b5615b (diff)
downloadxine-lib-798c5cedd0c4ff668553a3400dd76286494d1a2a.tar.gz
xine-lib-798c5cedd0c4ff668553a3400dd76286494d1a2a.tar.bz2
leak a little less memory
CVS patchset: 3163 CVS date: 2002/11/03 06:08:54
Diffstat (limited to 'src/libxineadec/adpcm.c')
-rw-r--r--src/libxineadec/adpcm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libxineadec/adpcm.c b/src/libxineadec/adpcm.c
index 6c43fb27b..e9c2f7817 100644
--- a/src/libxineadec/adpcm.c
+++ b/src/libxineadec/adpcm.c
@@ -24,7 +24,7 @@
* formats can be found here:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: adpcm.c,v 1.20 2002/11/02 23:37:33 tmmm Exp $
+ * $Id: adpcm.c,v 1.21 2002/11/03 06:08:54 tmmm Exp $
*/
#include <stdio.h>
@@ -1215,7 +1215,10 @@ static void adpcm_dispose (audio_decoder_t *this_gen) {
this->stream->audio_out->close (this->stream->audio_out);
this->output_open = 0;
- free(this->decode_buffer);
+ if (this->decode_buffer)
+ free(this->decode_buffer);
+ if (this->buf)
+ free(this->buf);
free (this_gen);
}