ecore: Additional safety for bad futures

Fixes T6519
This commit is contained in:
Andy Williams 2017-12-17 14:38:19 +00:00
parent 679d41fc3c
commit a34aca27a0
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ static Eina_Bool
ecore_future_dispatched(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Future_Schedule_Entry *entry = event;
EINA_SAFETY_ON_NULL_RETURN_VAL(entry, EINA_FALSE);
entry->event = NULL;
entry->cb(entry->future, entry->value);
return EINA_FALSE;