diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2005-11-19 10:55:37 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2005-11-19 10:55:37 +0000 |
commit | e1b79b8c88df3f48ba9dd0619c6c07b717233fe1 (patch) | |
tree | 00221cf0fdcd94ead45239096d0a55035b6d3542 /audio/moc/patches | |
parent | 5e3c715808809211ee95a347edc82b72146edb52 (diff) | |
download | pkgsrc-e1b79b8c88df3f48ba9dd0619c6c07b717233fe1.tar.gz |
Apply patch from rivo nurges to eliminate awful memory leak when
playing internet streams with moc.
Thanks to rivo nurges and Peter Schuller (Maintainer).
Bump PKGREVISION.
Diffstat (limited to 'audio/moc/patches')
-rw-r--r-- | audio/moc/patches/patch-aa | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/audio/moc/patches/patch-aa b/audio/moc/patches/patch-aa new file mode 100644 index 00000000000..b4eab15f6b1 --- /dev/null +++ b/audio/moc/patches/patch-aa @@ -0,0 +1,23 @@ +$NetBSD: patch-aa,v 1.1 2005/11/19 10:55:37 xtraeme Exp $ + +--- player.c.orig 2005-09-09 08:20:13.000000000 +0000 ++++ player.c +@@ -355,7 +355,7 @@ static void show_tags (const struct file + static void update_tags (const struct decoder *f, void *decoder_data, + struct io_stream *s) + { +- char *stream_title; ++ char *stream_title = NULL; + int tags_changed = 0; + struct file_tags *new_tags; + +@@ -378,6 +378,8 @@ static void update_tags (const struct de + show_tags (curr_tags); + tags_changed = 1; + } ++ else if (stream_title) ++ free (stream_title); + + if (tags_changed) + tags_change (); + |