fix memory leak (coverity)

This commit is contained in:
Kurt Hindenburg
2019-08-28 22:37:38 -04:00
parent 9c19368ce5
commit 8040bb2678

View File

@@ -306,6 +306,7 @@ void KeyBindingEditor::accept()
if (newTranslator->description().isEmpty()) {
KMessageBox::sorry(this, i18n("A key bindings scheme cannot be saved with an empty description."));
delete newTranslator;
return;
}