13
0

check for null pointer in Locations::remove()

This commit is contained in:
Paul Davis 2016-08-12 12:48:29 -04:00
parent dab31732c5
commit 0fa106ef4b

View File

@ -994,6 +994,10 @@ Locations::remove (Location *loc)
bool was_current = false;
LocationList::iterator i;
if (!loc) {
return;
}
if (loc->is_session_range()) {
return;
}
@ -1427,4 +1431,3 @@ Locations::find_all_between (framepos_t start, framepos_t end, LocationList& ll,
}
}
}