diff options
author | Ewald Snel <esnel@users.sourceforge.net> | 2003-02-22 14:06:47 +0000 |
---|---|---|
committer | Ewald Snel <esnel@users.sourceforge.net> | 2003-02-22 14:06:47 +0000 |
commit | cd4a41b97921778103891b206ca99f0240e8e059 (patch) | |
tree | d09888ddffb57c68c42a978d0c650cb945d6ad85 /src/demuxers/demux_nsf.c | |
parent | bd6642e17421911b8e7d24f321e7b012c7a65f1a (diff) | |
download | xine-lib-cd4a41b97921778103891b206ca99f0240e8e059.tar.gz xine-lib-cd4a41b97921778103891b206ca99f0240e8e059.tar.bz2 |
Fix memory leaks
CVS patchset: 4246
CVS date: 2003/02/22 14:06:47
Diffstat (limited to 'src/demuxers/demux_nsf.c')
-rw-r--r-- | src/demuxers/demux_nsf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demuxers/demux_nsf.c b/src/demuxers/demux_nsf.c index 8ec5ead04..4da0a4715 100644 --- a/src/demuxers/demux_nsf.c +++ b/src/demuxers/demux_nsf.c @@ -28,7 +28,7 @@ * For more information regarding the NSF format, visit: * http://www.tripoint.org/kevtris/nes/nsfspec.txt * - * $Id: demux_nsf.c,v 1.9 2003/01/26 15:56:21 tmmm Exp $ + * $Id: demux_nsf.c,v 1.10 2003/02/22 14:06:47 esnel Exp $ */ #ifdef HAVE_CONFIG_H @@ -177,6 +177,8 @@ static int demux_nsf_send_chunk(demux_plugin_t *this_gen) { this->new_song = 0; sprintf(title, "%s, song %d/%d", this->title, this->current_song, this->total_songs); + if (this->stream->meta_info[XINE_META_INFO_TITLE]) + free (this->stream->meta_info[XINE_META_INFO_TITLE]); this->stream->meta_info[XINE_META_INFO_TITLE] = strdup(title); xine_demux_control_newpts(this->stream, this->current_pts, 0); |