PlaylistWindow: Add missing NULL check
This commit is contained in:
parent
5dc097412d
commit
8487f27d5b
@ -559,6 +559,9 @@ void
|
||||
PlaylistWindow::DurationListener::_HandleItemRemoved(int32 index)
|
||||
{
|
||||
bigtime_t* deleted = fKnown.RemoveItemAt(index);
|
||||
if (deleted == NULL)
|
||||
return;
|
||||
|
||||
fTotalDuration -= *deleted;
|
||||
fParent._UpdateTotalDuration(fTotalDuration);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user