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; + } }