aboutsummaryrefslogtreecommitdiffstats
path: root/src/MemorySongEnumerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/MemorySongEnumerator.cxx')
-rw-r--r--src/MemorySongEnumerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MemorySongEnumerator.cxx b/src/MemorySongEnumerator.cxx
index 7c9d05daa..c3127c2bf 100644
--- a/src/MemorySongEnumerator.cxx
+++ b/src/MemorySongEnumerator.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -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;
}