Commit 5a68b3bf authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

misc/events.c: Don't call an invalid ptr (oops).

parent 91956ad8
......@@ -127,7 +127,7 @@ void vlc_event_send( vlc_event_manager_t * p_em,
{
vlc_event_listeners_group_t * listeners_group;
vlc_event_listener_t * listener;
vlc_event_callback_t func;
vlc_event_callback_t func = NULL;
void * user_data;
/* Fill event with the sending object now */
......@@ -146,7 +146,7 @@ void vlc_event_send( vlc_event_manager_t * p_em,
}
FOREACH_END()
vlc_mutex_unlock( &p_em->object_lock );
if( func )
func( p_event, user_data );
}
......
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