aboutsummaryrefslogtreecommitdiffstats
path: root/src/MemorySongEnumerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/MemorySongEnumerator.cxx')
-rw-r--r--src/MemorySongEnumerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MemorySongEnumerator.cxx b/src/MemorySongEnumerator.cxx
index 7c9d05daa..3bb17083c 100644
--- a/src/MemorySongEnumerator.cxx
+++ b/src/MemorySongEnumerator.cxx
@@ -20,13 +20,13 @@
#include "config.h"
#include "MemorySongEnumerator.hxx"
-Song *
+DetachedSong *
MemorySongEnumerator::NextSong()
{
if (songs.empty())
return nullptr;
- auto result = songs.front().Steal();
+ auto result = new DetachedSong(std::move(songs.front()));
songs.pop_front();
return result;
}