summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-14 14:15:28 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-03-27 15:03:16 -0700
commitf11dfc0bc8b454f86edef29256bb3f3e4c322b2b (patch)
tree6220bd686c41abb6227e17b6fcf93bc1c30b19d7 /src/lib/eo/eo.c
parent2f4b581300b73638dddd23b50308d27245c64059 (diff)
eo: enforce auto_unref logic at the end of efl_unref execution.
This allow for the safe use of efl_ref/efl_unref around an efl_part without calling any function on that part. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8358
Diffstat (limited to 'src/lib/eo/eo.c')
-rw-r--r--src/lib/eo/eo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index a95c27a..f1fbd37 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1993,6 +1993,9 @@ efl_unref(const Eo *obj_id)
1993 } 1993 }
1994 _efl_unref(obj); 1994 _efl_unref(obj);
1995 } 1995 }
1996
1997 _apply_auto_unref(obj, obj_id);
1998
1996 _efl_unref(obj); 1999 _efl_unref(obj);
1997 EO_OBJ_DONE(obj_id); 2000 EO_OBJ_DONE(obj_id);
1998} 2001}