Commit d9c87a31 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

mkv: Cleaning simplifications

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c8fb3f58
...@@ -49,24 +49,9 @@ public: ...@@ -49,24 +49,9 @@ public:
virtual ~chapter_codec_cmds_c() virtual ~chapter_codec_cmds_c()
{ {
delete p_private_data; delete p_private_data;
std::vector<KaxChapterProcessData*>::iterator indexe = enter_cmds.begin(); vlc_delete_all( enter_cmds );
while ( indexe != enter_cmds.end() ) vlc_delete_all( leave_cmds );
{ vlc_delete_all( during_cmds );
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;
}
} }
void SetPrivate( const KaxChapterProcessPrivate & private_data ) void SetPrivate( const KaxChapterProcessPrivate & private_data )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment