Commit 7410f0f5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix the same vout leak when vlc_clone fails

parent 6fa0eee4
......@@ -533,6 +533,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
{
module_unneed( p_vout, p_vout->p_module );
p_vout->p_module = NULL;
spu_Attach( p_vout->p_spu, p_vout, false );
spu_Destroy( p_vout->p_spu );
p_vout->p_spu = NULL;
vlc_object_release( p_vout );
return NULL;
}
......
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