mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
capmt: avoid use cam after delete
Origin commit data
------------------
Branch: ni/coolstream
Commit: d7c375c277
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-05-09 (Thu, 09 May 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -296,7 +296,7 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
||||
cam->sendMessage(NULL, 0, false);
|
||||
/* clean up channel_map with stopped record/stream/pip services NOT live-tv */
|
||||
it = channel_map.find(channel_id);
|
||||
if(it != channel_map.end() && newmask != 0)
|
||||
if(it != channel_map.end() && newmask != 0 && it->second != cam)
|
||||
{
|
||||
delete it->second;
|
||||
channel_map.erase(channel_id);
|
||||
|
Reference in New Issue
Block a user