summaryrefslogtreecommitdiff
path: root/libs/ardour/location.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-08-12 12:48:29 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-08-12 12:48:35 -0400
commit0fa106ef4b909c71969509942f7c5ad1ee84d7f4 (patch)
tree65896b92eb38683fbfea7a2b50353127a9e37f9b /libs/ardour/location.cc
parentdab31732c5ebcc0536c110682ed57e9d76160979 (diff)
check for null pointer in Locations::remove()
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r--libs/ardour/location.cc5
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,
}
}
}
-