ecore: in case of double free, bad things happen.

SVN revision: 80005
This commit is contained in:
Cedric BAIL 2012-12-03 05:28:11 +00:00
parent d39d7438c5
commit 5ddc4b550d
1 changed files with 2 additions and 0 deletions

View 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;