diff options
author | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-21 16:35:46 +0000 |
---|---|---|
committer | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-21 16:35:46 +0000 |
commit | 1e4b8a7b60032f2a68ede460a2f10452b0af03e2 (patch) | |
tree | 4986558c2e2e7a7e5c10b77bb444adf0db161907 | |
parent | 42a894fc7da0404b07734ff5c7be4bdee4037e53 (diff) | |
download | xine-lib-1e4b8a7b60032f2a68ede460a2f10452b0af03e2.tar.gz xine-lib-1e4b8a7b60032f2a68ede460a2f10452b0af03e2.tar.bz2 |
Fix memory leaks
CVS patchset: 3614
CVS date: 2002/12/21 16:35:46
-rw-r--r-- | src/libmad/xine_decoder.c | 6 | ||||
-rw-r--r-- | src/libspudec/xine_decoder.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/libmad/xine_decoder.c b/src/libmad/xine_decoder.c index bb974639b..07bd9d192 100644 --- a/src/libmad/xine_decoder.c +++ b/src/libmad/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.36 2002/12/21 12:56:48 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.37 2002/12/21 16:35:46 esnel Exp $ * * stuff needed to turn libmad into a xine decoder plugin */ @@ -66,6 +66,10 @@ static void mad_reset (audio_decoder_t *this_gen) { mad_decoder_t *this = (mad_decoder_t *) this_gen; + mad_synth_finish (&this->synth); + mad_frame_finish (&this->frame); + mad_stream_finish(&this->stream); + this->pts = 0; this->bytes_in_buffer = 0; diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c index ccaad726a..e948a9a82 100644 --- a/src/libspudec/xine_decoder.c +++ b/src/libspudec/xine_decoder.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.90 2002/12/21 12:56:48 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.91 2002/12/21 16:35:46 esnel Exp $ * * stuff needed to turn libspu into a xine decoder plugin */ @@ -185,6 +185,7 @@ static void spudec_dispose (spu_decoder_t *this_gen) { ovl_instance->free_handle(ovl_instance, this->spudec_stream_state[i].overlay_handle); this->spudec_stream_state[i].overlay_handle = -1; + free (this->spudec_stream_state[i].ra_seq.buf); } pthread_mutex_destroy(&this->nav_pci_lock); |