[vlc-commits] dash: Fixing memory leak

Hugo Beauzée-Luyssen git at videolan.org
Thu Nov 24 18:04:14 CET 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Nov 24 15:34:32 2011 +0100| [ca1045ab9f7b8488300fd9d0628157c9e937638f] | committer: Rémi Denis-Courmont

dash: Fixing memory leak

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/stream_filter/dash/mpd/BasicCMManager.cpp |    1 +
 modules/stream_filter/dash/mpd/BasicCMParser.cpp  |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/dash/mpd/BasicCMManager.cpp b/modules/stream_filter/dash/mpd/BasicCMManager.cpp
index 5cd8b7a..fd1fee1 100644
--- a/modules/stream_filter/dash/mpd/BasicCMManager.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMManager.cpp
@@ -36,6 +36,7 @@ BasicCMManager::BasicCMManager  (MPD *mpd)
 }
 BasicCMManager::~BasicCMManager ()
 {
+    delete this->mpd;
 }
 
 std::vector<ISegment*>  BasicCMManager::getSegments             (Representation *rep)
diff --git a/modules/stream_filter/dash/mpd/BasicCMParser.cpp b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
index 256f1b7..b4543b9 100644
--- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
@@ -33,6 +33,7 @@ using namespace dash::xml;
 BasicCMParser::BasicCMParser    (Node *root) : root(root), mpd(NULL)
 {
 }
+
 BasicCMParser::~BasicCMParser   ()
 {
 }



More information about the vlc-commits mailing list