mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
PMT_CHANGED: fix use after delete
Origin commit data
------------------
Commit: d05d4a88fb
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-05-09 (Thu, 09 May 2019)
This commit is contained in:
@@ -3932,6 +3932,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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user