Commit ba65ae57 authored by Tristan Matthews's avatar Tristan Matthews

demux: ogg: avoid use-after-free

parent 24b37f48
...@@ -1612,6 +1612,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux ) ...@@ -1612,6 +1612,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
{ {
msg_Dbg( p_demux, "found invalid Daala header" ); msg_Dbg( p_demux, "found invalid Daala header" );
Ogg_LogicalStreamDelete( p_demux, p_stream ); Ogg_LogicalStreamDelete( p_demux, p_stream );
p_stream = NULL;
p_ogg->i_streams--; p_ogg->i_streams--;
} }
} }
......
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