Code

mpdclient: call playlist_clear() in mpdclient_playlist_update()
authorMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 05:21:30 +0000 (07:21 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 05:21:30 +0000 (07:21 +0200)
commit5fb495639feb4d6789cfc95358fd5ffd95bd871a
tree0c690ae9b7276325527665049312e469e3d08bdf
parentba041d04c209850ef7cd42077c392d6e54bb235f
mpdclient: call playlist_clear() in mpdclient_playlist_update()

Instead of freeing the playlist with mpdclient_playlist_free(), call
playlist_clear() to empty the song list.  This fixes a segmentation
fault which occured when you cleared the playlist.
src/mpdclient.c