use shared_ptr for all Playlist handling; cleanup works again
[ardour.git] / gtk2_ardour / playlist_selection.h
index af0031fec9520def84559496ee491770dc1c60bc..813f8a92111a5484ba7220d19e388d297b50ffe5 100644 (file)
@@ -2,11 +2,12 @@
 #define __ardour_gtk_playlist_selection_h__
 
 #include <list>
+#include <boost/shared_ptr.hpp>
 
 namespace ARDOUR {
        class Playlist;
 }
 
-struct PlaylistSelection : list<ARDOUR::Playlist*> {};
+struct PlaylistSelection : list<boost::shared_ptr<ARDOUR::Playlist> > {};
 
 #endif /* __ardour_gtk_playlist_selection_h__ */