player/Control: wrap DetachedSong* in std::unique_ptr
This commit is contained in:
@@ -88,11 +88,9 @@ Partition::DatabaseModified(const Database &db)
|
||||
void
|
||||
Partition::TagModified()
|
||||
{
|
||||
DetachedSong *song = pc.LockReadTaggedSong();
|
||||
if (song != nullptr) {
|
||||
auto song = pc.LockReadTaggedSong();
|
||||
if (song)
|
||||
playlist.TagModified(std::move(*song));
|
||||
delete song;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user