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:
Chris Michael 2014-09-05 11:35:21 -04:00
parent d74eb93580
commit d7433b2bfe
1 changed files with 2 additions and 0 deletions

View File

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