Commit c2a9520c authored by Jai Menon's avatar Jai Menon Committed by Jean-Baptiste Kempf

MKV : Fix some memory leaks in the EBML parser.

Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3da77497
......@@ -48,6 +48,12 @@ EbmlParser::EbmlParser( EbmlStream *es, EbmlElement *el_start, demux_t *p_demux
EbmlParser::~EbmlParser( void )
{
if( !mi_level )
{
delete m_el[1];
return;
}
int i;
for( i = 1; i < mi_level; i++ )
......
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