blob: 2765947bf023d4a203ed39b01ea033f190b616ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-aa,v 1.2 2005/12/05 20:49:48 rillig 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 ();
|