Commit 40f255a1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

input: No need to call detach() prior to release() in those cases.

parent 4d2821ab
......@@ -399,7 +399,6 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
{
input_ChangeState( p_input, ERROR_S );
msg_Err( p_input, "cannot create input thread" );
vlc_object_detach( p_input );
vlc_object_release( p_input );
return VLC_EGENERIC;
}
......@@ -576,7 +575,6 @@ static int RunAndDestroy( input_thread_t *p_input )
exit:
/* Release memory */
vlc_object_detach( p_input );
vlc_object_release( p_input );
return 0;
}
......
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