playlist_song: fix memory leak

Free the temporary path string in apply_song_metadata().
This commit is contained in:
Max Kellermann 2010-07-25 13:35:59 +02:00
parent bedb82bf4d
commit 013ebb638a
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ apply_song_metadata(struct song *dest, const struct song *src)
return dest;
tmp = song_file_new(path_fs, NULL);
g_free(path_fs);
merge_song_metadata(tmp, dest, src);
} else {
tmp = song_file_new(dest->uri, NULL);