db/simple: call ReturnSong() on mounted database
Fixes a memory leak, or an assertion failure in the debug build.
This commit is contained in:
@@ -218,6 +218,7 @@ SimpleDatabase::GetSong(const char *uri) const
|
||||
|
||||
prefixed_light_song =
|
||||
new PrefixedLightSong(*song, r.directory->GetPath());
|
||||
r.directory->mounted_database->ReturnSong(song);
|
||||
return prefixed_light_song;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user