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:
@@ -78,7 +78,6 @@ configManager::configManager( void ) :
|
||||
|
||||
configManager::~configManager()
|
||||
{
|
||||
saveConfigFile();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -149,6 +149,8 @@ void engine::init( const bool _has_gui )
|
||||
|
||||
void engine::destroy( void )
|
||||
{
|
||||
configManager::inst()->saveConfigFile();
|
||||
|
||||
s_mixer->stopProcessing();
|
||||
|
||||
delete s_projectNotes;
|
||||
|
||||
Reference in New Issue
Block a user