Fixed some of memory leaks and sigsev and bugs
[mdictionary] / trunk / src / plugins / xdxf / src / xdxfplugin.cpp
index b734e26..9f06587 100644 (file)
@@ -286,6 +286,7 @@ CommonDictInterface* XdxfPlugin::getNew(const Settings *settings) const {
            settings->value("generateCache") == "true") {
             plugin->makeCache("");
         }
+        delete settings;
     }
 
     plugin->getDictionaryInfo();
@@ -329,6 +330,7 @@ void XdxfPlugin::setSettings(Settings *settings) {
     else {
        _settings->setValue("cached", "false");
     }
+    delete settings;
 
     emit settingsChanged();
 }