projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5baa1bd
)
eo: as efl_del is not an Eo API call anymore, manually protect call with refcount.
author
Cedric Bail
<cedric@osg.samsung.com>
Sun, 13 May 2018 05:11:33 +0000
(22:11 -0700)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Fri, 1 Jun 2018 03:52:03 +0000
(12:52 +0900)
src/lib/eo/eo_base_class.c
patch
|
blob
|
history
diff --git
a/src/lib/eo/eo_base_class.c
b/src/lib/eo/eo_base_class.c
index
d3c7619
..
3dcd893
100644
(file)
--- a/
src/lib/eo/eo_base_class.c
+++ b/
src/lib/eo/eo_base_class.c
@@
-682,6
+682,8
@@
EAPI void
efl_del(const Eo *obj)
{
if (!obj) return ;
+ EO_OBJ_POINTER_RETURN(obj, oid);
+ _efl_ref(oid);
if (efl_parent_get((Eo *) obj))
{
efl_parent_set((Eo *) obj, NULL);
@@
-691,6
+693,8
@@
efl_del(const Eo *obj)
ERR("Calling efl_del on an object with no parent is not advised any more.");
efl_unref(obj);
}
+ _efl_unref(oid);
+ EO_OBJ_DONE(obj);
}
void