forked from enlightenment/efl
Changes accounting safeness logic introduced at rev. 50158.
SVN revision: 50201
This commit is contained in:
parent
3015da94da
commit
2c1a54103d
|
@ -130,7 +130,10 @@ _ecore_idle_enterer_call(void)
|
|||
if (!ie->delete_me)
|
||||
{
|
||||
ie->references++;
|
||||
if (!ie->func(ie->data)) ecore_idle_enterer_del(ie);
|
||||
if (!ie->func(ie->data))
|
||||
{
|
||||
if (!ie->delete_me) ecore_idle_enterer_del(ie);
|
||||
}
|
||||
ie->references--;
|
||||
}
|
||||
if (idle_enterer_current) /* may have changed in recursive main loops */
|
||||
|
|
|
@ -106,7 +106,10 @@ _ecore_idle_exiter_call(void)
|
|||
if (!ie->delete_me)
|
||||
{
|
||||
ie->references++;
|
||||
if (!ie->func(ie->data)) ecore_idle_exiter_del(ie);
|
||||
if (!ie->func(ie->data))
|
||||
{
|
||||
if (!ie->delete_me) ecore_idle_exiter_del(ie);
|
||||
}
|
||||
ie->references--;
|
||||
}
|
||||
if (idle_exiter_current) /* may have changed in recursive main loops */
|
||||
|
|
|
@ -113,7 +113,10 @@ _ecore_idler_call(void)
|
|||
if (!ie->delete_me)
|
||||
{
|
||||
ie->references++;
|
||||
if (!ie->func(ie->data)) ecore_idler_del(ie);
|
||||
if (!ie->func(ie->data))
|
||||
{
|
||||
if (!ie->delete_me) ecore_idler_del(ie);
|
||||
}
|
||||
ie->references--;
|
||||
}
|
||||
if (idler_current) /* may have changed in recursive main loops */
|
||||
|
|
Loading…
Reference in New Issue