playlist/SongEnumerator: wrap song in std::unique_ptr

This commit is contained in:
Max Kellermann
2016-02-07 08:23:30 +01:00
parent e2a0fd7a28
commit 1c5f76635a
13 changed files with 33 additions and 38 deletions

View File

@@ -108,7 +108,7 @@ try {
/* dump the playlist */
DetachedSong *song;
std::unique_ptr<DetachedSong> song;
while ((song = playlist->NextSong()) != NULL) {
printf("%s\n", song->GetURI());
@@ -127,8 +127,6 @@ try {
(start_ms / 1000) % 60);
tag_save(stdout, song->GetTag());
delete song;
}
/* deinitialize everything */