From 2cff78999ab53320f08137558145e3101a4a9316 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 28 Oct 2022 20:19:29 -0400 Subject: [PATCH] Set pluginSettingsJ to NULL in settings::destroy(). --- src/settings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/settings.cpp b/src/settings.cpp index af7e2632..4511a4b8 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -101,8 +101,10 @@ void init() { void destroy() { - if (pluginSettingsJ) + if (pluginSettingsJ) { json_decref(pluginSettingsJ); + pluginSettingsJ = NULL; + } }