From 8040bb2678fc7f31a993e318a4afd346cf66fbc0 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Wed, 28 Aug 2019 22:37:38 -0400 Subject: [PATCH] fix memory leak (coverity) --- src/KeyBindingEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/KeyBindingEditor.cpp b/src/KeyBindingEditor.cpp index 32e4c87c6..db885556c 100644 --- a/src/KeyBindingEditor.cpp +++ b/src/KeyBindingEditor.cpp @@ -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; }