Commit 67ffa80a authored by Jai Menon's avatar Jai Menon Committed by Rémi Duraffort

MKV : Fix some memory leaks in the EBML parser.

Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 665515c7
......@@ -47,7 +47,13 @@ EbmlParser::EbmlParser( EbmlStream *es, EbmlElement *el_start, demux_t *p_demux
EbmlParser::~EbmlParser( void )
{
for( int i = 1; i < mi_level; i++ )
if( !mi_level )
{
delete m_el[1];
return;
}
for( int i = 1; i <= mi_level; i++ )
{
if( !mb_keep )
{
......
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