From 331abda4f5a817a1983490b151ebcc7111b0fad4 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 26 Jun 2020 00:49:03 +0200 Subject: [PATCH] glcdsetup: fix memleak Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/1bf77e9c48ac232439dd4d392fb3b014331106c7 Author: vanhofen Date: 2020-06-26 (Fri, 26 Jun 2020) Origin message was: ------------------ - glcdsetup: fix memleak --- src/gui/glcdsetup.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gui/glcdsetup.cpp b/src/gui/glcdsetup.cpp index 3804922f8..d3582c8d6 100644 --- a/src/gui/glcdsetup.cpp +++ b/src/gui/glcdsetup.cpp @@ -580,10 +580,6 @@ int GLCD_Menu::GLCD_Menu_Select_Driver() m->enableSaveScreen(); res = m->exec(NULL, ""); - - if (!m->gotAction()) - return res; - delete selector; m->hide(); }