diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-22 14:51:51 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-22 14:52:13 +0100 |
commit | 30e0644722fbcf0bf39a4086827bab72d81bb765 (patch) | |
tree | 4889feb4cf053cef1b3935574d9448d53bee4bb7 | |
parent | 3ada464020269ce961b770522c7cba2485c2d207 (diff) |
db/simple: call ReturnSong() on mounted database
Fixes a memory leak, or an assertion failure in the debug build.
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -8,6 +8,7 @@ ver 0.21.5 (not yet released) * storage - udisks: fix "AlreadyMounted" error - udisks: use relative path from mount URI + - fix memory leak * input - buffer: fix crash bug when playing remote WAV file * tags diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index 570925035..1daa4bf57 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -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; } |