From: Jean-Philippe Andre Date: Tue, 21 Jun 2016 01:14:13 +0000 (+0900) Subject: ecore: Fix _ecore_animator_shutdown (double free) X-Git-Tag: upstream/1.20.0~5602 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e68e8d008846a827a758483313e4ee205a1181a5;p=platform%2Fupstream%2Fefl.git 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. --- diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c index 707916c..4bf148d 100644 --- a/src/lib/ecore/ecore_anim.c +++ b/src/lib/ecore/ecore_anim.c @@ -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); } }