Commit e8d7655c authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: dash: fix leak (cid #1260239)

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