Commit db033d38 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

misc/events.c: Fix a NULL ptr access.

parent fb364585
...@@ -210,6 +210,10 @@ void vlc_event_send( vlc_event_manager_t * p_em, ...@@ -210,6 +210,10 @@ void vlc_event_send( vlc_event_manager_t * p_em,
/* Call the function attached */ /* Call the function attached */
cached_listener = array_of_cached_listeners; cached_listener = array_of_cached_listeners;
if( !listeners_group )
return;
vlc_mutex_lock( &p_em->event_sending_lock ); vlc_mutex_lock( &p_em->event_sending_lock );
/* Track item removed from *this* thread, with a simple flag */ /* Track item removed from *this* thread, with a simple flag */
......
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