From e1b79b8c88df3f48ba9dd0619c6c07b717233fe1 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Sat, 19 Nov 2005 10:55:37 +0000 Subject: 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. --- audio/moc/Makefile | 3 ++- audio/moc/distinfo | 3 ++- audio/moc/patches/patch-aa | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 audio/moc/patches/patch-aa (limited to 'audio/moc') diff --git a/audio/moc/Makefile b/audio/moc/Makefile index 5aa01c5d402..0b34ac2079b 100644 --- a/audio/moc/Makefile +++ b/audio/moc/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.1.1.1 2005/09/26 23:17:32 xtraeme Exp $ +# $NetBSD: Makefile,v 1.2 2005/11/19 10:55:37 xtraeme Exp $ DISTNAME= moc-2.3.2 +PKGREVISION= 1 CATEGORIES= audio MASTER_SITES= ftp://ftp.daper.net/pub/soft/moc/stable/ EXTRACT_SUFX= .tar.bz2 diff --git a/audio/moc/distinfo b/audio/moc/distinfo index 266a09c088a..4497afaa4ec 100644 --- a/audio/moc/distinfo +++ b/audio/moc/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/09/26 23:17:32 xtraeme Exp $ +$NetBSD: distinfo,v 1.2 2005/11/19 10:55:37 xtraeme Exp $ SHA1 (moc-2.3.2.tar.bz2) = ca1a331ea9ea3699d76d4771416587190a814516 RMD160 (moc-2.3.2.tar.bz2) = 1da768dbb625bbeedd960eb7c09c0113eeba7482 Size (moc-2.3.2.tar.bz2) = 406058 bytes +SHA1 (patch-aa) = abf10af1869428886f6616c5fc54a424474efd18 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 (); + -- cgit v1.2.3