*/
bool init (bool with_vst, bool try_optimization, const char* localedir);
void init_post_engine ();
- int cleanup ();
+ void cleanup ();
bool no_auto_connect ();
void make_property_quarks ();
ARDOUR::PluginManager::instance().refresh ();
}
-int
-ARDOUR::cleanup ()
+void
+ARDOUR::cleanup ()
{
+ if (!libardour_initialized) {
+ return;
+ }
+
+ ARDOUR::AudioEngine::destroy ();
+
delete Library;
lrdf_cleanup ();
delete &ControlProtocolManager::instance();
vstfx_exit();
#endif
PBD::cleanup ();
- return 0;
+
+ return;
}
void