[vlc-commits] dash: DOMParser: FIxing memory leak.

Hugo Beauzée-Luyssen git at videolan.org
Sat Nov 26 12:34:36 CET 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Nov 25 14:43:56 2011 +0100| [55ea9b1e9d423c71962263b85e3af95bc411858a] | committer: Jean-Baptiste Kempf

dash: DOMParser: FIxing memory leak.

This also prevents VLC to abort at exit.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=55ea9b1e9d423c71962263b85e3af95bc411858a
---

 modules/stream_filter/dash/xml/DOMParser.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/dash/xml/DOMParser.cpp b/modules/stream_filter/dash/xml/DOMParser.cpp
index 5288f28..63ce995 100644
--- a/modules/stream_filter/dash/xml/DOMParser.cpp
+++ b/modules/stream_filter/dash/xml/DOMParser.cpp
@@ -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              ()



More information about the vlc-commits mailing list