/* call the prepare callback for all handlers with prep functions */
EINA_LIST_FOREACH_SAFE(fd_handlers_with_prep, l, l2, fdh)
{
+ if (!fdh) fd_handlers_with_prep = eina_list_remove_list(l, fd_handlers_with_prep);
if (!fdh->delete_me && fdh->prep_func)
{
fdh->references++;
if (!fd_handlers_to_delete) return;
EINA_LIST_FOREACH_SAFE(fd_handlers_to_delete, l, l2, fdh)
{
+ if (!fdh) fd_handlers_to_delete = eina_list_remove_list(l, fd_handlers_to_delete);
/* fdh->delete_me should be set for all fdhs at the start of the list */
if (fdh->references)
continue;
ret = 0;
EINA_LIST_FOREACH_SAFE(fd_handlers_with_buffer, l, l2, fdh)
{
+ if (!fdh) fd_handlers_with_buffer = eina_list_remove_list(l, fd_handlers_with_buffer);
if ((!fdh->delete_me) && fdh->buf_func)
{
fdh->references++;