playlist_song: fix memory leak
Free the temporary path string in apply_song_metadata().
This commit is contained in:
@@ -63,6 +63,8 @@ apply_song_metadata(struct song *dest, const struct song *src)
|
|||||||
return dest;
|
return dest;
|
||||||
|
|
||||||
tmp = song_file_new(path_fs, NULL);
|
tmp = song_file_new(path_fs, NULL);
|
||||||
|
g_free(path_fs);
|
||||||
|
|
||||||
merge_song_metadata(tmp, dest, src);
|
merge_song_metadata(tmp, dest, src);
|
||||||
} else {
|
} else {
|
||||||
tmp = song_file_new(dest->uri, NULL);
|
tmp = song_file_new(dest->uri, NULL);
|
||||||
|
Reference in New Issue
Block a user