From 3f774f711f746e29b37421cfe5f23a11d1422c2d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 9 Nov 2007 15:07:42 +0000 Subject: [PATCH] initialized Location::_locked in all cases git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2613 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/location.h | 4 +++- libs/ardour/location.cc | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; }