check for null pointer in Locations::remove()
This commit is contained in:
parent
dab31732c5
commit
0fa106ef4b
@ -994,6 +994,10 @@ Locations::remove (Location *loc)
|
|||||||
bool was_current = false;
|
bool was_current = false;
|
||||||
LocationList::iterator i;
|
LocationList::iterator i;
|
||||||
|
|
||||||
|
if (!loc) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (loc->is_session_range()) {
|
if (loc->is_session_range()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1427,4 +1431,3 @@ Locations::find_all_between (framepos_t start, framepos_t end, LocationList& ll,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user