aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-31 14:30:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-31 14:30:54 +0000
commit2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2 (patch)
tree3424d95756467d03c8d2d7d3fcacae556628eed1 /src
parent852c21b594d987e7cd165b0dcbc16c6d51416a3f (diff)
downloadmpd-2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2.tar.gz
mpd-2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2.tar.xz
mpd-2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2.zip
little tidying up that will be deleted anyway
git-svn-id: https://svn.musicpd.org/mpd/trunk@1260 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/player.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/player.c b/src/player.c
index dac7b59a4..e0d8ee93f 100644
--- a/src/player.c
+++ b/src/player.c
@@ -465,10 +465,9 @@ Song * playerCurrentDecodeSong() {
DecoderControl * dc = &(getPlayerData()->decoderControl);
if(dc->metadataSet && (!song || strcmp(song->utf8url, dc->utf8url))) {
- if(!song) {
- song = newNullSong();
- song->tag = newMpdTag();
- }
+ if(song) freeJustSong(song);
+ song = newNullSong();
+ song->tag = newMpdTag();
if(song->utf8url) free(song->utf8url);
song->utf8url = strdup(dc->utf8url);
if(dc->title >= 0) {