From 38a40d7c06e4b6dbe1d884be26deaa04959a3e16 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Oct 2022 17:48:59 +0200 Subject: [PATCH] Session drop graph-nodes before ~Session Previously active Routes were retained until the end of Session d'tor and not dropped during Session::destroy. While most resources were explicitly cleaned up via DropReferences, Processor UIs are kept around until the actual destructor runs. Likewise some controllable are kept around while the GraphNode (Route) owning it is not released. --- libs/ardour/session.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 2b602f7398..52b2ad3fe9 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -690,6 +690,8 @@ Session::destroy () /* drop GraphNode references */ _graph_chain.reset (); + _current_route_graph = GraphEdges (); + _io_graph_chain[0].reset (); _io_graph_chain[1].reset ();