[vlc-commits] mkv: Cleaning simplifications

Hugo Beauzée-Luyssen git at videolan.org
Tue Oct 18 12:26:54 CEST 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Oct 17 17:45:33 2011 +0200| [d9c87a31728ed56327cb7a7ae92aaa575eff6743] | committer: Jean-Baptiste Kempf

mkv: Cleaning simplifications

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

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

 modules/demux/mkv/chapter_command.hpp |   21 +++------------------
 1 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/modules/demux/mkv/chapter_command.hpp b/modules/demux/mkv/chapter_command.hpp
index 750b341..b334616 100644
--- a/modules/demux/mkv/chapter_command.hpp
+++ b/modules/demux/mkv/chapter_command.hpp
@@ -49,24 +49,9 @@ public:
     virtual ~chapter_codec_cmds_c()
     {
         delete p_private_data;
-        std::vector<KaxChapterProcessData*>::iterator indexe = enter_cmds.begin();
-        while ( indexe != enter_cmds.end() )
-        {
-            delete (*indexe);
-            ++indexe;
-        }
-        std::vector<KaxChapterProcessData*>::iterator indexl = leave_cmds.begin();
-        while ( indexl != leave_cmds.end() )
-        {
-            delete (*indexl);
-            ++indexl;
-        }
-        std::vector<KaxChapterProcessData*>::iterator indexd = during_cmds.begin();
-        while ( indexd != during_cmds.end() )
-        {
-            delete (*indexd);
-            ++indexd;
-        }
+        vlc_delete_all( enter_cmds );
+        vlc_delete_all( leave_cmds );
+        vlc_delete_all( during_cmds );
     }
 
     void SetPrivate( const KaxChapterProcessPrivate & private_data )



More information about the vlc-commits mailing list