author | Max Kellermann <max@duempel.org> | |
Wed, 17 Sep 2008 10:29:15 +0000 (12:29 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Wed, 17 Sep 2008 10:29:15 +0000 (12:29 +0200) | ||
commit | a878dcfbfc717f817ae7f3a2ecfbef4c016ee046 | |
tree | 82ef29bb188defb95c02a3a8078e44b7bf985ebe | tree | snapshot |
parent | 75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d | commit | diff |
playlist: added playlist_remove_reuse()
playlist_remove_reuse() removes a song from the playlist, but does not
free it.
Use this function in mpdclient_cmd_delete() to fix a segmentation
fault: the song pointer was still used after it was freed, by passing
it to mpdclient_playlist_callback(). Free the song manually now.
Reorganize and simply some code in mpdclient_cmd_delete().
playlist_remove_reuse() removes a song from the playlist, but does not
free it.
Use this function in mpdclient_cmd_delete() to fix a segmentation
fault: the song pointer was still used after it was freed, by passing
it to mpdclient_playlist_callback(). Free the song manually now.
Reorganize and simply some code in mpdclient_cmd_delete().
src/mpdclient.c | diff | blob | history | |
src/playlist.h | diff | blob | history |