summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e5d5fdaee..7b2fb238c 100644
--- a/NEWS
+++ b/NEWS
@@ -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;
}