From 4169f065155edea00c4b7953315fbf23f4ed8170 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sat, 14 Feb 2004 13:15:32 +0000 Subject: big memleak CVS patchset: 6153 CVS date: 2004/02/14 13:15:32 --- src/demuxers/demux_mod.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_mod.c b/src/demuxers/demux_mod.c index 05c9faf08..edcdd0a0e 100644 --- a/src/demuxers/demux_mod.c +++ b/src/demuxers/demux_mod.c @@ -192,8 +192,8 @@ static void demux_mod_send_headers(demux_plugin_t *this_gen) { _x_meta_info_set(this->stream, XINE_META_INFO_TITLE, this->title); _x_meta_info_set(this->stream, XINE_META_INFO_ARTIST, this->artist); - sprintf(copyright, "(C) %s", this->copyright); - _x_meta_info_set(this->stream, XINE_META_INFO_COMMENT, copyright); + snprintf(copyright, 100, "(C) %s", this->copyright); + _x_meta_info_set(this->stream, XINE_META_INFO_COMMENT, this->copyright); /* send start buffers */ _x_demux_control_start(this->stream); @@ -235,7 +235,9 @@ static int demux_mod_seek (demux_plugin_t *this_gen, static void demux_mod_dispose (demux_plugin_t *this_gen) { demux_mod_t *this = (demux_mod_t *) this_gen; - + + ModPlug_Unload(this->mpfile); + free(this->buffer); free(this->title); free(this->artist); free(this->copyright); -- cgit v1.2.3