From 0fa106ef4b909c71969509942f7c5ad1ee84d7f4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 12 Aug 2016 12:48:29 -0400 Subject: check for null pointer in Locations::remove() --- libs/ardour/location.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour/location.cc') 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, } } } - -- cgit v1.2.3