Tidy up PluginInsert's handling of how it chooses to map plugin IO to that of the...
[ardour.git] / libs / ardour / named_selection.cc
index a829c44a501af56edad8827c4b8c897c27bdbcd8..4bcc3f3b726da25f3e9b0dd9d43aa17a7488716a 100644 (file)
@@ -52,8 +52,6 @@ NamedSelection::NamedSelection (string n, PlaylistList& l)
                (*i)->set_name (new_name);
                (*i)->use();
        }
-
-       NamedSelectionCreated (this);
 }
 
 NamedSelection::NamedSelection (Session& session, const XMLNode& node)
@@ -101,8 +99,9 @@ NamedSelection::NamedSelection (Session& session, const XMLNode& node)
 NamedSelection::~NamedSelection ()
 {
        for (PlaylistList::iterator i = playlists.begin(); i != playlists.end(); ++i) {
-               (*i)->release ();
+               /* XXX who really owns these? us or the session? */
                (*i)->drop_references ();
+               (*i)->release ();
        }
 }