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

libvlc_event: Make sure we return in case of error.

parent 96655c5e
......@@ -170,8 +170,8 @@ void libvlc_event_send( libvlc_event_manager_t * p_em,
array_listeners_cached = malloc(sizeof(libvlc_event_listener_t)*(i_cached_listeners));
if( !array_listeners_cached )
{
printf( "Can't alloc memory in libvlc_event_send" );
break;
fprintf(stderr, "Can't alloc memory in libvlc_event_send" );
return;
}
listener_cached = array_listeners_cached;
......
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