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:
Jean-Philippe Andre 2016-06-21 10:14:13 +09:00
parent 9be8f029af
commit e68e8d0088
1 changed files with 2 additions and 0 deletions

View File

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