13
0

Session-cleanup: clear route references from graph

resort_routes() is a no-op during session destruction,
however _current_route_graph can still hold references
to routes. A GraphVertex is-a boost::shared_ptr<Route>.
This commit is contained in:
Robin Gareus 2021-08-27 06:42:56 +02:00
parent 8c7f2c93f0
commit eb0f353716
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2173,6 +2173,9 @@ Session::resort_routes ()
*/
if (inital_connect_or_deletion_in_progress ()) {
/* drop any references during delete */
GraphEdges edges;
_current_route_graph = edges;
return;
}