Merge branch 'master' into qmake
[mdictionary] / src / mdictionary / gui / DictManagerWidget.cpp
index f0cae5f..4794eb1 100644 (file)
@@ -181,6 +181,7 @@ void DictManagerWidget::addNewDictButtonClicked() {
 
        if(settings != NULL) {
            CommonDictInterface* newDict = selectedPlugin->getNew(settings);
+           delete settings;
            Q_EMIT addDictionary(newDict);
        }
    }