diff options
Diffstat (limited to '')
-rw-r--r-- | src/update.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c index ec9890f31..f792b3c3c 100644 --- a/src/update.c +++ b/src/update.c @@ -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); |