[vlc-commits] mkv: fixed used after free of matroska_segment_c::ep

Filip Roséen git at videolan.org
Mon May 9 15:09:30 CEST 2016


vlc | branch: master | Filip Roséen <filip at videolabs.io> | Mon May  9 14:53:18 2016 +0200| [f0fdccf86dfc63dce3d8de498d0b9aa34d0291c7] | committer: Jean-Baptiste Kempf

mkv: fixed used after free of matroska_segment_c::ep

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

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

 modules/demux/mkv/matroska_segment.cpp |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index f65227f..dd2289f 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -1067,11 +1067,6 @@ void matroska_segment_c::ESDestroy( )
             track.p_es = NULL;
         }
     }
-
-    /* TODO: we will leak, fix this!
-    delete ep;
-    ep = NULL;
-    */
 }
 
 int matroska_segment_c::BlockGet( KaxBlock * & pp_block, KaxSimpleBlock * & pp_simpleblock, bool *pb_key_picture, bool *pb_discardable_picture, int64_t *pi_duration )



More information about the vlc-commits mailing list