Commit c08e2287 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: fix a memory leak

parent 45820ea8
...@@ -2642,6 +2642,7 @@ void matroska_segment_c::UnSelect( ) ...@@ -2642,6 +2642,7 @@ void matroska_segment_c::UnSelect( )
{ {
if ( tracks[i_track]->p_es != NULL ) if ( tracks[i_track]->p_es != NULL )
{ {
es_format_Clean( &tracks[i_track]->fmt );
es_out_Del( sys.demuxer.out, tracks[i_track]->p_es ); es_out_Del( sys.demuxer.out, tracks[i_track]->p_es );
tracks[i_track]->p_es = NULL; tracks[i_track]->p_es = NULL;
} }
......
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