[vlc-commits] demux: dash: fix leak (cid #1260239)
Francois Cartegnie
git at videolan.org
Mon Dec 22 19:22:11 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 22 18:51:47 2014 +0100| [e8d7655cc776bf4fa06b5d2d8cf2774691b6fe17] | committer: Francois Cartegnie
demux: dash: fix leak (cid #1260239)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8d7655cc776bf4fa06b5d2d8cf2774691b6fe17
---
modules/stream_filter/dash/mpd/IsoffMainParser.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
index ee07cd9..88cbdf5 100644
--- a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
+++ b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
@@ -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;
More information about the vlc-commits
mailing list