From 191ab3301cff60a87375f74f0122a2098dbe4dcd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 27 Aug 2008 23:05:36 -0700 Subject: metadata_pipe: free current_tag in metadata_pipe_clear This avoids writing the metadata of a static song into the URL of song; leading to confusing looking playlists. --- src/metadata_pipe.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/metadata_pipe.c b/src/metadata_pipe.c index 2dc2b608f..5508b97c8 100644 --- a/src/metadata_pipe.c +++ b/src/metadata_pipe.c @@ -149,5 +149,10 @@ void metadata_pipe_clear(void) freeMpdTag(tc.tag); } + if (current_tag) { + freeMpdTag(current_tag); + current_tag = NULL; + } + pthread_mutex_unlock(&read_lock); } -- cgit v1.2.3