redoundo: fix invalid timer usage.

don't access freed timer.

@fix
This commit is contained in:
Hermet Park 2016-05-08 02:36:52 +09:00
parent 0b27ce5474
commit 512e13a626
1 changed files with 2 additions and 2 deletions

View File

@ -44,10 +44,9 @@ Eina_Bool
_input_timer_cb(void *data)
{
redoundo_data *rd = (redoundo_data *)data;
rd->smart.timer = NULL;
if (!rd->smart.continues_input) return ECORE_CALLBACK_CANCEL;
rd->smart.continues_input = EINA_FALSE;
ecore_timer_del(rd->smart.timer);
rd->smart.timer = NULL;
return ECORE_CALLBACK_CANCEL;
}
@ -424,6 +423,7 @@ redoundo_clear(redoundo_data *rd)
}
rd->internal_change = EINA_FALSE;
ecore_timer_del(rd->smart.timer);
rd->smart.timer = NULL;
}
void