Commit e8d7655c authored by Francois Cartegnie's avatar Francois Cartegnie

demux: dash: fix leak (cid #1260239)

parent e1124316
......@@ -267,7 +267,7 @@ size_t IsoffMainParser::parseSegmentList(Node * segListNode, SegmentInformation
if(segListNode)
{
std::vector<Node *> segments = DOMHelper::getElementByTagName(segListNode, "SegmentURL", false);
SegmentList *list = new SegmentList();
SegmentList *list;
if(!segments.empty() && (list = new (std::nothrow) SegmentList()))
{
std::vector<Node *>::const_iterator it;
......
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