Commit 602ef2d0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vsxu: fix mutex leaks

parent ffb2a8b7
......@@ -149,8 +149,10 @@ static int Open( vlc_object_t * p_this )
return VLC_SUCCESS;
error:
vlc_mutex_destroy( &p_sys->cyclic_block_mutex );
vlc_mutex_destroy( &p_sys->lock );
vlc_sem_destroy( &p_sys->ready );
free (p_sys );
free( p_sys );
return VLC_EGENERIC;
}
......@@ -171,6 +173,7 @@ static void Close( vlc_object_t *p_this )
/* Free the ressources */
vlc_sem_destroy( &p_sys->ready );
vlc_mutex_destroy( &p_sys->cyclic_block_mutex );
vlc_mutex_destroy( &p_sys->lock );
delete p_sys->vsxu_cyclic_buffer;
free( p_sys );
......
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