forked from enlightenment/efl
ecore: Fix _ecore_animator_shutdown (double free)
evas 3d examples would always exit on a double free, since EINA_INLIST_FREE was misused. Not surprising considering it's different from EINA_LIST_FREE but has a similar name.
This commit is contained in:
parent
9be8f029af
commit
e68e8d0088
|
@ -750,6 +750,8 @@ _ecore_animator_shutdown(void)
|
|||
if (animator->suspended) animators_suspended--;
|
||||
if (animator->delete_me) animators_delete_me--;
|
||||
|
||||
animators = (Ecore_Animator *) eina_inlist_remove
|
||||
(EINA_INLIST_GET(animators), EINA_INLIST_GET(animator));
|
||||
free(animator);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue