From 478fd92039443743babec98812f10921209f1e5a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 4 Dec 2009 19:09:08 +0000 Subject: 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 --- libs/ardour/session_command.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/session_command.cc') 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(*_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 pl = playlists.by_name(child->property("name")->value())) { + if (boost::shared_ptr pl = playlists->by_name(child->property("name")->value())) { return new MementoCommand(*(pl.get()), before, after); } } else if (obj_T == typeid (Route).name() || obj_T == typeid (AudioTrack).name() || obj_T == typeid(MidiTrack).name()) { -- cgit v1.2.3