Commit def1d62d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

transcode: video: Fix potential use after free

parent 720773f5
......@@ -677,13 +677,22 @@ void transcode_video_close( sout_stream_t *p_stream,
/* Close decoder */
if( id->p_decoder->p_module )
{
module_unneed( id->p_decoder, id->p_decoder->p_module );
id->p_decoder->p_module = NULL;
}
if( id->p_decoder->p_description )
{
vlc_meta_Delete( id->p_decoder->p_description );
id->p_decoder->p_description = NULL;
}
/* Close encoder */
if( id->p_encoder->p_module )
{
module_unneed( id->p_encoder, id->p_encoder->p_module );
id->p_decoder->p_module = NULL;
}
/* Close filters */
if( id->p_f_chain )
......
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