Commit 24b586c7 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: playlistmanager: fix leak or double free

Manager took ownership of logic
parent 81913ec5
......@@ -65,6 +65,7 @@ PlaylistManager::~PlaylistManager ()
unsetPeriod();
delete playlist;
delete conManager;
delete logic;
}
void PlaylistManager::unsetPeriod()
......@@ -92,17 +93,13 @@ bool PlaylistManager::setupPeriod()
{
SegmentTracker *tracker = new (std::nothrow) SegmentTracker(logic, set);
if(!tracker)
{
delete logic;
continue;
}
AbstractStream *st = streamFactory->create(p_demux, set->getStreamFormat(),
tracker, conManager);
if(!st)
{
delete tracker;
delete logic;
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment