ecore: in case of double free, bad things happen.
authorCedric BAIL <cedric.bail@free.fr>
Mon, 3 Dec 2012 05:28:11 +0000 (05:28 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Mon, 3 Dec 2012 05:28:11 +0000 (05:28 +0000)
SVN revision: 80005

src/lib/ecore/ecore_idle_enterer.c

index e7d10e5..cc07fb0 100644 (file)
@@ -175,6 +175,8 @@ _ecore_idle_enterer_del(Ecore_Idle_Enterer *obj)
 {
    Ecore_Idle_Enterer_Private_Data *idle_enterer = eo_data_get(obj, MY_CLASS);
 
+   /* Double free case */
+   EINA_SAFETY_ON_NULL_RETURN_VAL(idle_enterer, NULL);
    EINA_SAFETY_ON_TRUE_RETURN_VAL(idle_enterer->delete_me, NULL);
    idle_enterer->delete_me = 1;
    idle_enterers_delete_me = 1;