diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-16 21:09:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-16 21:09:38 +0000 |
commit | 5c1cf951d792c360de3e172f9ae21e6146f069c8 (patch) | |
tree | 59c35a79cefc22e17d953070f4a2d89339641671 /libs/pbd | |
parent | 3b14aea52bf52576f72c69658eee3060c5d12027 (diff) |
initialize undo trnsaction timestamp in copy constructor (fixes a valgrind warning)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7432 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/undo.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc index 2e2686d558..28a1cc41e5 100644 --- a/libs/pbd/undo.cc +++ b/libs/pbd/undo.cc @@ -40,6 +40,8 @@ UndoTransaction::UndoTransaction (const UndoTransaction& rhs) { _name = rhs._name; _clearing = false; + _timestamp = rhs._timestamp; + clear (); actions.insert(actions.end(),rhs.actions.begin(),rhs.actions.end()); } |