diff options
Diffstat (limited to '')
-rw-r--r-- | src/song_save.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/song_save.c b/src/song_save.c index 731d59e86..f13f1262e 100644 --- a/src/song_save.c +++ b/src/song_save.c @@ -107,6 +107,10 @@ song_load(FILE *fp, struct directory *parent, const char *uri, } else if (0 == strncmp(SONG_MTIME, line, strlen(SONG_MTIME))) { song->mtime = atoi(&(line[strlen(SONG_MTIME)])); } else { + if (song->tag != NULL) + tag_end_add(song->tag); + song_free(song); + g_set_error(error_r, song_save_quark(), 0, "unknown line in db: %s", line); return false; |