summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_smart.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-25 15:51:17 +0100
committerTom Hacohen <tom@stosb.com>2014-09-25 17:38:45 +0100
commita7560dbc61953c3652780f232e38adbd2d711972 (patch)
tree5883eada4cad354a8e16cbacbad0b24660884fcf /src/lib/emotion/emotion_smart.c
parent2bc462f55b2e0d0b4bee6998f91b611be4ee1d2d (diff)
Eo: Change eo_add/del/unref behaviour.
Before this change eo_add() used to create an object with 1 ref, and if the object had a parent, a second ref. Now, eo_add() always returns an object with 1 ref, and eo_add_ref() preserves the old behaviour (for bindings). eo_unref now un-parents if refcount is 0, and eo_del() is an alias for eo_unref (will change to be a way to ensure an object is dead and goes to zombie-land even if still refed).
Diffstat (limited to 'src/lib/emotion/emotion_smart.c')
-rw-r--r--src/lib/emotion/emotion_smart.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index b1ea284..9082570 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -260,7 +260,6 @@ emotion_object_add(Evas *evas)
260{ 260{
261 Evas_Object *e; 261 Evas_Object *e;
262 e = eo_add(MY_CLASS, evas); 262 e = eo_add(MY_CLASS, evas);
263 eo_unref(e);
264 return e; 263 return e;
265} 264}
266 265