Prevent crash at session-close when analysing.
[ardour.git] / libs / ardour / session.cc
index ec8b6e14cc34e5c90eb70213b5482a95dd864e66..856e89eced51d6a999d4101519c615658ee6bd0d 100644 (file)
@@ -544,6 +544,8 @@ Session::destroy ()
 
        remove_pending_capture_state ();
 
+       Analyser::flush ();
+
        _state_of_the_state = StateOfTheState (CannotSave|Deletion);
 
        /* disconnect from any and all signals that we are connected to */