db/proxy: add missing nullptr check
This commit is contained in:
		| @@ -194,7 +194,8 @@ ProxyDatabase::GetSong(const char *uri, Error &error) const | |||||||
| 	Song *song2 = song != nullptr | 	Song *song2 = song != nullptr | ||||||
| 		? Convert(song) | 		? Convert(song) | ||||||
| 		: nullptr; | 		: nullptr; | ||||||
| 	mpd_song_free(song); | 	if (song != nullptr) | ||||||
|  | 		mpd_song_free(song); | ||||||
| 	if (!mpd_response_finish(connection)) { | 	if (!mpd_response_finish(connection)) { | ||||||
| 		if (song2 != nullptr) | 		if (song2 != nullptr) | ||||||
| 			song2->Free(); | 			song2->Free(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann