Browse Source

Set pluginSettingsJ to NULL in settings::destroy().

tags/v2.2.0
Andrew Belt 2 years ago
parent
commit
2cff78999a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/settings.cpp

+ 3
- 1
src/settings.cpp View File

@@ -101,8 +101,10 @@ void init() {


void destroy() {
if (pluginSettingsJ)
if (pluginSettingsJ) {
json_decref(pluginSettingsJ);
pluginSettingsJ = NULL;
}
}




Loading…
Cancel
Save