Commit 69f9689c authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ogg: fix leak on attachments

parent 4431d922
......@@ -2209,13 +2209,16 @@ static void Ogg_EndOfStream( demux_t *p_demux )
vlc_meta_Delete( p_ogg->p_meta );
p_ogg->p_meta = NULL;
for(int i=0; i<p_ogg->i_attachments; i++)
vlc_input_attachment_Delete( p_ogg->attachments[i] );
TAB_CLEAN(p_ogg->i_attachments, p_ogg->attachments);
for ( int i=0; i < p_ogg->i_seekpoints; i++ )
{
if ( p_ogg->pp_seekpoints[i] )
vlc_seekpoint_Delete( p_ogg->pp_seekpoints[i] );
}
TAB_CLEAN( p_ogg->i_seekpoints, p_ogg->pp_seekpoints );
p_ogg->i_seekpoints = 0;
}
static void Ogg_CleanSpecificData( logical_stream_t *p_stream )
......
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