dash: DOMParser: FIxing memory leak.
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Fri, 25 Nov 2011 13:43:56 +0000 (14:43 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 26 Nov 2011 11:34:31 +0000 (12:34 +0100)
This also prevents VLC to abort at exit.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/stream_filter/dash/xml/DOMParser.cpp

index 5288f28..63ce995 100644 (file)
@@ -40,6 +40,8 @@ DOMParser::~DOMParser   ()
 {
     if(this->vlc_reader)
         xml_ReaderDelete(this->vlc_reader);
+    if ( this->vlc_xml )
+        xml_Delete( this->vlc_xml );
 }
 
 Node*   DOMParser::getRootNode              ()