Commit 9ad094db authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dvdread: fix use after free on error (refs #6594)

parent 4c09ad19
...@@ -231,9 +231,9 @@ static int Open( vlc_object_t *p_this ) ...@@ -231,9 +231,9 @@ static int Open( vlc_object_t *p_this )
DemuxTitles( p_demux, &p_sys->i_angle ); DemuxTitles( p_demux, &p_sys->i_angle );
if( DvdReadSetArea( p_demux, 0, 0, p_sys->i_angle ) != VLC_SUCCESS ) if( DvdReadSetArea( p_demux, 0, 0, p_sys->i_angle ) != VLC_SUCCESS )
{ {
Close( p_this );
msg_Err( p_demux, "DvdReadSetArea(0,0,%i) failed (can't decrypt DVD?)", msg_Err( p_demux, "DvdReadSetArea(0,0,%i) failed (can't decrypt DVD?)",
p_sys->i_angle ); p_sys->i_angle );
Close( p_this );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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