Commit 64ee6dd8 authored by Rémi Duraffort's avatar Rémi Duraffort

We don't need the vlc_mutex_lock here.

parent 2c595f38
...@@ -1068,8 +1068,6 @@ void update_Delete( update_t *p_update ) ...@@ -1068,8 +1068,6 @@ void update_Delete( update_t *p_update )
{ {
assert( p_update ); assert( p_update );
vlc_mutex_lock( &p_update->lock );
if( p_update->p_check ) if( p_update->p_check )
{ {
assert( !p_update->p_download ); assert( !p_update->p_download );
...@@ -1082,7 +1080,6 @@ void update_Delete( update_t *p_update ) ...@@ -1082,7 +1080,6 @@ void update_Delete( update_t *p_update )
vlc_thread_join( p_update->p_download ); vlc_thread_join( p_update->p_download );
} }
vlc_mutex_unlock( &p_update->lock );
vlc_mutex_destroy( &p_update->lock ); vlc_mutex_destroy( &p_update->lock );
free( p_update->release.psz_url ); free( p_update->release.psz_url );
......
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