song: allocate the result of song_get_url()

This commit is contained in:
Max Kellermann
2009-01-04 19:09:34 +01:00
parent ea8ae68e6f
commit fed719197c
13 changed files with 110 additions and 85 deletions

View File

@@ -699,8 +699,10 @@ static void reap_update_task(void)
cond_enter(&delete_cond);
if (delete) {
char tmp[MPD_PATH_MAX];
g_debug("removing: %s", song_get_url(delete, tmp));
char *tmp = song_get_uri(delete);
g_debug("removing: %s", tmp);
g_free(tmp);
deleteASongFromPlaylist(delete);
delete = NULL;
cond_signal_sync(&delete_cond);