diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-04 19:09:08 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-04 19:09:08 +0000 |
commit | 478fd92039443743babec98812f10921209f1e5a (patch) | |
tree | bc21b3a94f455415650b836969067474991e87c6 /libs/ardour/session_command.cc | |
parent | 681e7baa89b265a95a0bc47059766abe3a2b5255 (diff) |
Use a shared_ptr for SessionPlaylists so that it can be explicitly destroyed in ~Session to ease debugging.
git-svn-id: svn://localhost/ardour2/branches/3.0@6282 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_command.cc')
-rw-r--r-- | libs/ardour/session_command.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index c078e2cadf..d1ce09cbf6 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -31,6 +31,7 @@ #include "ardour/audioregion.h" #include "ardour/midi_source.h" #include "ardour/midi_region.h" +#include "ardour/session_playlists.h" #include "pbd/error.h" #include "pbd/id.h" #include "pbd/statefuldestructible.h" @@ -99,7 +100,7 @@ Session::memento_command_factory(XMLNode *n) } else if (obj_T == typeid (TempoMap).name()) { return new MementoCommand<TempoMap>(*_tempo_map, before, after); } else if (obj_T == typeid (Playlist).name() || obj_T == typeid (AudioPlaylist).name() || obj_T == typeid (MidiPlaylist).name()) { - if (boost::shared_ptr<Playlist> pl = playlists.by_name(child->property("name")->value())) { + if (boost::shared_ptr<Playlist> pl = playlists->by_name(child->property("name")->value())) { return new MementoCommand<Playlist>(*(pl.get()), before, after); } } else if (obj_T == typeid (Route).name() || obj_T == typeid (AudioTrack).name() || obj_T == typeid(MidiTrack).name()) { |