aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/db/ProxyDatabasePlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index c0c9f93e7..b8b660b44 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -194,7 +194,8 @@ ProxyDatabase::GetSong(const char *uri, Error &error) const
Song *song2 = song != nullptr
? Convert(song)
: nullptr;
- mpd_song_free(song);
+ if (song != nullptr)
+ mpd_song_free(song);
if (!mpd_response_finish(connection)) {
if (song2 != nullptr)
song2->Free();