forked from enlightenment/efl
ecore: Check that eo_data_scope_get returns valid Ecore_Timer_Data
before trying to use it eo_data_scope_get Could return NULL if it does not find valid ecore_timer_data on this object. We should check that return before just Assuming that timer data is valid. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
d74eb93580
commit
d7433b2bfe
|
@ -436,6 +436,8 @@ _ecore_timer_del(Ecore_Timer *obj)
|
|||
{
|
||||
Ecore_Timer_Data *timer = eo_data_scope_get(obj, MY_CLASS);
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(timer, NULL);
|
||||
|
||||
if (timer->frozen && !timer->references)
|
||||
{
|
||||
void *data = timer->data;
|
||||
|
|
Loading…
Reference in New Issue