Commit 306544c8 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: smooth: fix memleak (cid #1346971)

parent 99d31901
......@@ -53,8 +53,11 @@ bool IndexReader::parseIndex(block_t *p_block, BaseRepresentation *rep)
uuid_box = uuid_box->p_next;
}
if(!uuid_box)
return false;
SegmentTimeline *timelineadd = new (std::nothrow) SegmentTimeline(rep->inheritTimescale());
if (uuid_box && timelineadd)
if (timelineadd)
{
const MP4_Box_data_tfrf_t *p_tfrfdata = uuid_box->data.p_tfrf;
for ( uint8_t i=0; i<p_tfrfdata->i_fragment_count; i++ )
......
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