summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_idle_enterer.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-12-03 05:28:11 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-12-03 05:28:11 +0000
commit5ddc4b550db4a8982c3fc56189b993bc44fbcf5b (patch)
treeb80655f0f0a5244a54242ee912804bb93c8a976d /src/lib/ecore/ecore_idle_enterer.c
parentd39d7438c581bab7b0dad7a9a19b2612a633d74a (diff)
ecore: in case of double free, bad things happen.
SVN revision: 80005
Diffstat (limited to 'src/lib/ecore/ecore_idle_enterer.c')
-rw-r--r--src/lib/ecore/ecore_idle_enterer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_idle_enterer.c b/src/lib/ecore/ecore_idle_enterer.c
index e7d10e5..cc07fb0 100644
--- a/src/lib/ecore/ecore_idle_enterer.c
+++ b/src/lib/ecore/ecore_idle_enterer.c
@@ -175,6 +175,8 @@ _ecore_idle_enterer_del(Ecore_Idle_Enterer *obj)
175{ 175{
176 Ecore_Idle_Enterer_Private_Data *idle_enterer = eo_data_get(obj, MY_CLASS); 176 Ecore_Idle_Enterer_Private_Data *idle_enterer = eo_data_get(obj, MY_CLASS);
177 177
178 /* Double free case */
179 EINA_SAFETY_ON_NULL_RETURN_VAL(idle_enterer, NULL);
178 EINA_SAFETY_ON_TRUE_RETURN_VAL(idle_enterer->delete_me, NULL); 180 EINA_SAFETY_ON_TRUE_RETURN_VAL(idle_enterer->delete_me, NULL);
179 idle_enterer->delete_me = 1; 181 idle_enterer->delete_me = 1;
180 idle_enterers_delete_me = 1; 182 idle_enterers_delete_me = 1;