fix leak in Playlist, when close() called if playlist play has not yet begun

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1094 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent c7aa137e29
commit fc95903ea1

@ -145,6 +145,11 @@ void AmPlaylist::addToPlayListFront(AmPlaylistItem* item)
void AmPlaylist::close(bool notify)
{
cur_mut.lock();
if(!cur_item && !items.empty()){
cur_item = items.front();
items.pop_front();
}
while(cur_item)
gotoNextItem(notify);
cur_mut.unlock();

Loading…
Cancel
Save