From 64465c1318e227ca625ee2047ec8b6a8f0c2faff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Jan 2014 19:57:27 +0100 Subject: Song: make the "parent" attribute mandatory The Song class is only used for database songs now. A Song without a Directory is not possible anymore. --- src/DirectorySave.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/DirectorySave.cxx') diff --git a/src/DirectorySave.cxx b/src/DirectorySave.cxx index 1072b1e28..499f84734 100644 --- a/src/DirectorySave.cxx +++ b/src/DirectorySave.cxx @@ -145,7 +145,7 @@ directory_load(TextFile &file, Directory &directory, Error &error) return false; directory.AddSong(Song::NewFrom(std::move(*song), - &directory)); + directory)); delete song; } else if (StringStartsWith(line, PLAYLIST_META_BEGIN)) { const char *name = line + sizeof(PLAYLIST_META_BEGIN) - 1; -- cgit v1.2.3