Commit 790f3b33 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

addons: remove useless lock/unlock

parent 9a157b2d
...@@ -190,12 +190,10 @@ void addons_manager_Delete( addons_manager_t *p_manager ) ...@@ -190,12 +190,10 @@ void addons_manager_Delete( addons_manager_t *p_manager )
vlc_event_manager_fini( p_manager->p_event_manager ); vlc_event_manager_fini( p_manager->p_event_manager );
#define FREE_QUEUE( name ) \ #define FREE_QUEUE( name ) \
vlc_mutex_lock( &p_manager->p_priv->name.lock );\
FOREACH_ARRAY( addon_entry_t *p_entry, p_manager->p_priv->name.entries )\ FOREACH_ARRAY( addon_entry_t *p_entry, p_manager->p_priv->name.entries )\
addon_entry_Release( p_entry );\ addon_entry_Release( p_entry );\
FOREACH_END();\ FOREACH_END();\
ARRAY_RESET( p_manager->p_priv->name.entries );\ ARRAY_RESET( p_manager->p_priv->name.entries );\
vlc_mutex_unlock( &p_manager->p_priv->name.lock );\
vlc_mutex_destroy( &p_manager->p_priv->name.lock );\ vlc_mutex_destroy( &p_manager->p_priv->name.lock );\
vlc_cond_destroy( &p_manager->p_priv->name.waitcond ); vlc_cond_destroy( &p_manager->p_priv->name.waitcond );
......
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