ConfigManager: do not save configuration upon destruction

Do not save configuration file in destructor of ConfigManager as
at this place the whole LMMS engine already has been shutdown and
thus saving e.g. configuration of MidiControlListener causes a
segfault. Instead explicitely save configuration file at the
beginning of Engine::destroy().

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Tobias Doerffel
2009-05-31 12:27:23 +02:00
parent bc2815118b
commit 7873afcf54
2 changed files with 2 additions and 1 deletions

View File

@@ -78,7 +78,6 @@ configManager::configManager( void ) :
configManager::~configManager()
{
saveConfigFile();
}

View File

@@ -149,6 +149,8 @@ void engine::init( const bool _has_gui )
void engine::destroy( void )
{
configManager::inst()->saveConfigFile();
s_mixer->stopProcessing();
delete s_projectNotes;