Commit a719d589 authored by Thomas Guillem's avatar Thomas Guillem

demux: avi: fix possible SIGSEGV when Open fails

This fixes a regression introduced by e1be5bca
parent 0ecb00d9
......@@ -274,7 +274,8 @@ static void Close ( vlc_object_t * p_this )
free( p_sys->track );
AVI_ChunkFreeRoot( p_demux->s, &p_sys->ck_root );
vlc_meta_Delete( p_sys->meta );
if( p_sys->meta )
vlc_meta_Delete( p_sys->meta );
for( unsigned i = 0; i < p_sys->i_attachment; i++)
vlc_input_attachment_Delete(p_sys->attachment[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