gui/scan.cpp: fix memleak

This commit is contained in:
[CST] Focus
2013-12-02 11:49:39 +04:00
parent fcb7b88ff0
commit afe8427b2b

View File

@@ -452,10 +452,10 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
CVolume::getInstance()->setVolume(msg); CVolume::getInstance()->setVolume(msg);
break; break;
default: default:
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
delete[] (unsigned char*) data;
break; break;
} }
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
delete[] (unsigned char*) data;
return msg; return msg;
} }