Commit 8bc1f1a5 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

demux/avformat: CloseDemux: properly release allocated attachments

The entries within p_sys->attachments are of course allocated with
vlc_input_attachment_New, meaning that they shall be released using
the corresponding vlc_input_attachment_Delete.

fixes: #18288
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9a994f8f
......@@ -711,7 +711,7 @@ void CloseDemux( vlc_object_t *p_this )
}
for( int i = 0; i < p_sys->i_attachments; i++ )
free( p_sys->attachments[i] );
vlc_input_attachment_Delete( p_sys->attachments[i] );
TAB_CLEAN( p_sys->i_attachments, p_sys->attachments);
if( p_sys->p_title )
......
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