Fix the same vout leak when vlc_clone fails

This commit is contained in:
Rémi Denis-Courmont 2009-03-06 22:41:46 +02:00
parent 6fa0eee4ac
commit 7410f0f5c0
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}