eocre timechanges - set obj to null before deletion on stop

stops double-deletion due to callback nesting
This commit is contained in:
Carsten Haitzler 2018-01-05 02:03:19 +09:00
parent deca91bfe9
commit df61af9efa
1 changed files with 3 additions and 2 deletions

View File

@ -81,8 +81,9 @@ void
_ecore_main_timechanges_stop(Eo *obj EINA_UNUSED)
{
#ifdef HAVE_SYS_TIMERFD_H
if (!realtime_obj) return;
efl_del(realtime_obj);
Eo *o = realtime_obj;
if (!o) return;
realtime_obj = NULL;
efl_del(o);
#endif
}