db/DatabaseSong: DatabaseDetachSong(uri) returns instance, not pointer
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user