Commit 0a0c6e7c authored by Thomas Guillem's avatar Thomas Guillem

mkv: add missing vlc_input_attachment_New() error handling

parent 82381660
......@@ -312,6 +312,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
attachment_c *a = p_sys->stored_attachments[i];
(*ppp_attach)[i] = vlc_input_attachment_New( a->fileName(), a->mimeType(), NULL,
a->p_data, a->size() );
if( !(*ppp_attach)[i] )
{
free(*ppp_attach);
return VLC_ENOMEM;
}
}
return VLC_SUCCESS;
......
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