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

@@ -1141,6 +1141,7 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
case CZapitClient::EVT_PMT_CHANGED:
*msg = NeutrinoMessages::EVT_PMT_CHANGED;
*data = (neutrino_msg_data_t) p;
dont_delete_p = true;
break;
case CZapitClient::EVT_TUNE_COMPLETE:
*msg = NeutrinoMessages::EVT_TUNE_COMPLETE;