summaryrefslogtreecommitdiff
path: root/audio/moc/patches/patch-aa
blob: b4eab15f6b15c7c19d3adfefceed6dcdf5392204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 ();