diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-08-27 23:05:36 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-08-27 23:05:36 -0700 |
commit | 191ab3301cff60a87375f74f0122a2098dbe4dcd (patch) | |
tree | 0fd2113bdb54945ed4f4858d519a3bd3578f4384 /src | |
parent | a2c48a74265592922a1d1d1db0236dd782f6f7ec (diff) | |
download | mpd-191ab3301cff60a87375f74f0122a2098dbe4dcd.tar.gz mpd-191ab3301cff60a87375f74f0122a2098dbe4dcd.tar.xz mpd-191ab3301cff60a87375f74f0122a2098dbe4dcd.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/metadata_pipe.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |