From ab87ecabe74e1654d3a91e55f865f81de1f50159 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 25 Apr 2016 15:41:06 +0200 Subject: [PATCH] fix memleak Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/0f371cc9181d598c5ca5f280a0f6787e5adb2751 Author: Jacek Jendrzej Date: 2016-04-25 (Mon, 25 Apr 2016) --- src/driver/rcinput.cpp | 1 + src/gui/scan_setup.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 65856a9fe..a7d0fafa0 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1181,6 +1181,7 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6 switch (emsg.eventID) { case NeutrinoMessages::EVT_CURRENTEPG: case NeutrinoMessages::EVT_NEXTEPG: + case NeutrinoMessages::EVT_NOEPG_YET: { CSectionsdClient::CurrentNextInfo *cn = (CSectionsdClient::CurrentNextInfo *) p; delete [] cn; diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index e2c05c29b..5ad95d794 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -1985,6 +1985,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &actionkey) std::string text = "No transponders found for "; text += name; ShowHint(LOCALE_MESSAGEBOX_ERROR, text.c_str(), 450, 2); + delete selector; return menu_return::RETURN_REPAINT; }