diff --git a/libs/ardour/ardour/location.h b/libs/ardour/ardour/location.h index 661d662306..138c5c0854 100644 --- a/libs/ardour/ardour/location.h +++ b/libs/ardour/ardour/location.h @@ -62,12 +62,14 @@ class Location : public PBD::StatefulDestructible : _name (name), _start (sample_start), _end (sample_end), - _flags (bits) { } + _flags (bits), + _locked (false) { } Location () { _start = 0; _end = 0; _flags = Flags (0); + _locked = false; } Location (const Location& other); diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index aa7e799c8f..2f4109be86 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -52,6 +52,9 @@ Location::Location (const Location& other) _flags = Flags (_flags & ~IsStart); _flags = Flags (_flags & ~IsEnd); + + /* copy is not locked even if original was */ + _locked = false; }