db/DatabaseSong: DatabaseDetachSong(uri) returns instance, not pointer

This commit is contained in:
Max Kellermann
2017-02-08 09:58:20 +01:00
parent 7225e919fc
commit d184231169
4 changed files with 10 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ SongLoader::LoadFromDatabase(const char *uri) const
{
#ifdef ENABLE_DATABASE
if (db != nullptr)
return DatabaseDetachSong(*db, *storage, uri);
return new DetachedSong(DatabaseDetachSong(*db, *storage, uri));
#else
(void)uri;
#endif