From 4274b95c45e57bcdb6cec51f8debfa33f2fd5b23 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 15 Jan 2018 19:37:45 +0100 Subject: [PATCH] fix posible memleak --- src/gui/widget/termwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/widget/termwindow.cpp b/src/gui/widget/termwindow.cpp index dda63af23..bc67d3e77 100644 --- a/src/gui/widget/termwindow.cpp +++ b/src/gui/widget/termwindow.cpp @@ -111,6 +111,10 @@ void CTermWindow::showResult() if (!exit) { do { g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd); + if ( msg > CRCInput::RC_MaxRC && msg != CRCInput::RC_ok && msg != CRCInput::RC_home && msg != CRCInput::RC_timeout){ + CNeutrinoApp::getInstance()->handleMsg( msg, data ); + } + } while (msg != CRCInput::RC_ok && msg != CRCInput::RC_home && msg != CRCInput::RC_timeout); } }