base: Fix error to save configuration at obs_module_unload

When `obs_module_unload` is called, the frontend API is no longer
available so that `_config->Save()` is failing with error messages.
Since the configuration is saved from the OK or the Apply button on the
dialog, it is not necessary to save it again at `obs_module_unload`.
This commit is contained in:
Norihiro Kamae 2023-08-12 14:37:39 +09:00 committed by tt2468
parent 132d4bafdd
commit 3cd8163945

View File

@ -125,8 +125,7 @@ void obs_module_unload(void)
// Destroy the event handler // Destroy the event handler
_eventHandler.reset(); _eventHandler.reset();
// Save and destroy the config manager // Destroy the config manager
_config->Save();
_config.reset(); _config.reset();
// Destroy the cpu stats // Destroy the cpu stats