Commit 55c7a24d authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

taglib: fix potential null dereference.

(cherry picked from commit e7bfbd1d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d7567c3f
......@@ -320,7 +320,11 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_meta_t* p_demux_meta, vlc_
p_attachment = vlc_input_attachment_New( psz_name, psz_mime,
psz_description, p_data, i_data );
if( p_attachment )
if( !p_attachment )
{
free( psz_description );
continue;
}
TAB_APPEND_CAST( (input_attachment_t**),
p_demux_meta->i_attachments, p_demux_meta->attachments,
p_attachment );
......
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