forked from enlightenment/efl
eina - promise - be safe if no scheduled_entry is there
something is causing a scheduled entry to be called with no scheduled entry: https://phab.enlightenment.org/T8490 - valgrind trace aattached. i can't see it so i don't know what. the only protection i can put in is this.
This commit is contained in:
parent
3e88b3b9f9
commit
6981d09f9b
|
@ -425,6 +425,7 @@ _eina_future_dispatch(Eina_Future_Scheduler *scheduler, Eina_Future *f, Eina_Val
|
|||
static void
|
||||
_scheduled_entry_cb(Eina_Future *f, Eina_Value value)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(f->scheduled_entry);
|
||||
// This function is called by the scheduler, so it has to be defined
|
||||
Eina_Future_Scheduler *scheduler = f->scheduled_entry->scheduler;
|
||||
|
||||
|
|
Loading…
Reference in New Issue