summaryrefslogtreecommitdiff
path: root/src
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
parent2f4b581300b73638dddd23b50308d27245c64059 (diff)
downloadefl-f11dfc0bc8b454f86edef29256bb3f3e4c322b2b.tar.gz
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')
-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 a95c27a42d..f1fbd37fcf 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1993,6 +1993,9 @@ efl_unref(const Eo *obj_id)
}
_efl_unref(obj);
}
+
+ _apply_auto_unref(obj, obj_id);
+
_efl_unref(obj);
EO_OBJ_DONE(obj_id);
}