From afe8427b2b6dd175ed141b197db17b66e14e73e2 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 2 Dec 2013 11:49:39 +0400 Subject: [PATCH] gui/scan.cpp: fix memleak --- src/gui/scan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/scan.cpp b/src/gui/scan.cpp index a2f9c6654..9c49918b2 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -452,10 +452,10 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data) CVolume::getInstance()->setVolume(msg); break; default: - if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000)) - delete[] (unsigned char*) data; break; } + if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000)) + delete[] (unsigned char*) data; return msg; }