summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libxineadec/adpcm.c7
-rw-r--r--src/libxineadec/gsm610.c5
-rw-r--r--src/libxineadec/logpcm.c5
-rw-r--r--src/libxineadec/roqaudio.c5
4 files changed, 17 insertions, 5 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);
}
diff --git a/src/libxineadec/gsm610.c b/src/libxineadec/gsm610.c
index c71ba11c7..dbaba6d7e 100644
--- a/src/libxineadec/gsm610.c
+++ b/src/libxineadec/gsm610.c
@@ -44,7 +44,7 @@
* Carsten Bormann
* --------------------------------------------------------------------
*
- * $Id: gsm610.c,v 1.2 2002/10/23 04:16:24 tmmm Exp $
+ * $Id: gsm610.c,v 1.3 2002/11/03 06:08:54 tmmm Exp $
*
*/
@@ -219,6 +219,9 @@ static void gsm610_dispose (audio_decoder_t *this_gen) {
this->stream->audio_out->close (this->stream->audio_out);
this->output_open = 0;
+ if (this->buf)
+ free(this->buf);
+
free (this_gen);
}
diff --git a/src/libxineadec/logpcm.c b/src/libxineadec/logpcm.c
index 190879479..348cba9c9 100644
--- a/src/libxineadec/logpcm.c
+++ b/src/libxineadec/logpcm.c
@@ -30,7 +30,7 @@
* http://sox.sourceforge.net/
* which listed the code as being lifted from Sun Microsystems.
*
- * $Id: logpcm.c,v 1.6 2002/10/23 04:05:07 tmmm Exp $
+ * $Id: logpcm.c,v 1.7 2002/11/03 06:08:54 tmmm Exp $
*
*/
@@ -234,6 +234,9 @@ static void logpcm_dispose (audio_decoder_t *this_gen) {
this->stream->audio_out->close (this->stream->audio_out);
this->output_open = 0;
+ if (this->buf)
+ free(this->buf);
+
free (this_gen);
}
diff --git a/src/libxineadec/roqaudio.c b/src/libxineadec/roqaudio.c
index 85c09b991..d46fb6e4e 100644
--- a/src/libxineadec/roqaudio.c
+++ b/src/libxineadec/roqaudio.c
@@ -21,7 +21,7 @@
* For more information regarding the RoQ file format, visit:
* http://www.csse.monash.edu.au/~timf/
*
- * $Id: roqaudio.c,v 1.9 2002/10/23 02:55:01 tmmm Exp $
+ * $Id: roqaudio.c,v 1.10 2002/11/03 06:08:54 tmmm Exp $
*
*/
@@ -153,6 +153,9 @@ static void roqaudio_dispose (audio_decoder_t *this_gen) {
this->stream->audio_out->close (this->stream->audio_out);
this->output_open = 0;
+ if (this->buf)
+ free(this->buf);
+
free (this_gen);
}