cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f11dfc0bc8b454f86edef29256bb3f3e4c322b2b

commit f11dfc0bc8b454f86edef29256bb3f3e4c322b2b
Author: Cedric BAIL <cedric.b...@free.fr>
Date:   Thu Mar 14 14:15:28 2019 -0700

    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 <m...@marcel-hollerbach.de>
    Differential Revision: https://phab.enlightenment.org/D8358
---
 src/lib/eo/eo.c | 3 +++
 1 file changed, 3 insertions(+)

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);
 }

-- 


Reply via email to