diff options
-rw-r--r-- | libs/ardour/location.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 0a48b43d0e..2fd63b6195 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -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, } } } - |