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:
Carsten Haitzler 2020-02-12 09:52:03 +00:00
parent 3e88b3b9f9
commit 6981d09f9b
1 changed files with 1 additions and 0 deletions

View File

@ -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;