From 3cd81639457b789bda564cca58badf35f0285106 Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Sat, 12 Aug 2023 14:37:39 +0900 Subject: [PATCH] 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`. --- src/obs-websocket.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/obs-websocket.cpp b/src/obs-websocket.cpp index 24fdbe296..63ae269b0 100644 --- a/src/obs-websocket.cpp +++ b/src/obs-websocket.cpp @@ -125,8 +125,7 @@ void obs_module_unload(void) // Destroy the event handler _eventHandler.reset(); - // Save and destroy the config manager - _config->Save(); + // Destroy the config manager _config.reset(); // Destroy the cpu stats