gui/scan.cpp: fix memleak

Origin commit data
------------------
Branch: ni/coolstream
Commit: afe8427b2b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-12-02 (Mon, 02 Dec 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-12-02 11:49:39 +04:00
parent a4b1d4dee6
commit a70a232470

View File

@@ -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;
}