From c76912db2cbbd4590495b70b7b33fe416a22b28b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 29 Dec 2010 22:36:03 +0000 Subject: [PATCH] Fix crash on saving session template (#3634). git-svn-id: svn://localhost/ardour2/branches/3.0@8375 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index c22cfd261a..3b69fd8279 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4065,8 +4065,12 @@ Session::start_time_changed (framepos_t old) /* Update the auto loop range to match the session range (unless the auto loop range has been changed by the user) */ - + Location* s = _locations->session_range_location (); + if (s == 0) { + return; + } + Location* l = _locations->auto_loop_location (); if (l->start() == old) { @@ -4082,6 +4086,10 @@ Session::end_time_changed (framepos_t old) */ Location* s = _locations->session_range_location (); + if (s == 0) { + return; + } + Location* l = _locations->auto_loop_location (); if (l->end() == old) {