Commit 51b21bc3 authored by Antoine Cellerier's avatar Antoine Cellerier

We don't need to detach. Since we're in the parent's destructor, it's already been done for us.

parent 3333b45a
......@@ -1223,7 +1223,6 @@ static void EndThread( vout_thread_t *p_vout )
if( !p_vout->b_direct )
{
module_Unneed( p_vout->p_chroma, p_vout->p_chroma->p_module );
vlc_object_detach( p_vout->p_chroma );
vlc_object_release( p_vout->p_chroma );
p_vout->p_chroma = NULL;
}
......
......@@ -150,8 +150,6 @@ void spu_Destroy( spu_t *p_spu )
{
int i_index;
vlc_object_detach( p_spu );
/* Destroy all remaining subpictures */
for( i_index = 0; i_index < VOUT_MAX_SUBPICTURES; i_index++ )
{
......
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