PMT_CHANGED: fix use after delete

This commit is contained in:
Jacek Jendrzej
2019-05-09 19:35:28 +02:00
parent 0cfd982aa0
commit 26c2d7dc54
2 changed files with 2 additions and 0 deletions

View File

@@ -3762,6 +3762,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
else if( msg == NeutrinoMessages::EVT_PMT_CHANGED) {
t_channel_id channel_id = *(t_channel_id*) data;
CRecordManager::getInstance()->Update(channel_id);
delete[] (unsigned char*) data;
return messages_return::handled;
}