Commit 30e06447 authored by Max Kellermann's avatar Max Kellermann

db/simple: call ReturnSong() on mounted database

Fixes a memory leak, or an assertion failure in the debug build.
parent 3ada4640
...@@ -8,6 +8,7 @@ ver 0.21.5 (not yet released) ...@@ -8,6 +8,7 @@ ver 0.21.5 (not yet released)
* storage * storage
- udisks: fix "AlreadyMounted" error - udisks: fix "AlreadyMounted" error
- udisks: use relative path from mount URI - udisks: use relative path from mount URI
- fix memory leak
* input * input
- buffer: fix crash bug when playing remote WAV file - buffer: fix crash bug when playing remote WAV file
* tags * tags
......
...@@ -218,6 +218,7 @@ SimpleDatabase::GetSong(const char *uri) const ...@@ -218,6 +218,7 @@ SimpleDatabase::GetSong(const char *uri) const
prefixed_light_song = prefixed_light_song =
new PrefixedLightSong(*song, r.directory->GetPath()); new PrefixedLightSong(*song, r.directory->GetPath());
r.directory->mounted_database->ReturnSong(song);
return prefixed_light_song; return prefixed_light_song;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment