Commit e588c1f9 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf
Browse files

dash: Let the parser handle the root node cleaning.


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5e7910c3
......@@ -125,11 +125,9 @@ static void Close(vlc_object_t *p_obj)
stream_sys_t *p_sys = (stream_sys_t *) p_stream->p_sys;
dash::DASHManager *p_dashManager = p_sys->p_dashManager;
dash::http::HTTPConnectionManager *p_conManager = p_sys->p_conManager;
dash::xml::Node *p_node = p_sys->p_node;
delete(p_conManager);
delete(p_dashManager);
delete(p_node);
free(p_sys);
}
/*****************************************************************************
......
......@@ -41,6 +41,7 @@ DOMParser::DOMParser (stream_t *stream) :
DOMParser::~DOMParser ()
{
delete this->root;
if(this->vlc_reader)
xml_ReaderDelete(this->vlc_reader);
if ( this->vlc_xml )
......
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