summaryrefslogtreecommitdiff
path: root/src/libxineadec/adpcm.c
diff options
context:
space:
mode:
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);
}