summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-02-20 11:11:34 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-20 11:38:02 +0900
commit75908799dc0e79bbee72be3b23d51cd6348d8467 (patch)
tree974e9feec39a3a93c406f818c36e0795ef21f53d /src/lib
parent78feb9decb91533775056a10f05647da7fb067dd (diff)
evas: do not error for smart class objects
Summary: this should fix some spamming in e Reviewers: jpeg Reviewed By: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D4675 Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_smart.c b/src/lib/evas/canvas/evas_object_smart.c
index 6450d2bd42..0b3cb69fbc 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -1079,9 +1079,15 @@ evas_object_smart_del(Evas_Object *eo_obj)
1079 unsigned int i; 1079 unsigned int i;
1080 1080
1081 if (obj->delete_me) return; 1081 if (obj->delete_me) return;
1082
1083 sobj = efl_data_scope_get(eo_obj, MY_CLASS);
1082 s = obj->smart.smart; 1084 s = obj->smart.smart;
1083 if (s && s->smart_class->del) 1085 if (s && s->smart_class->del)
1084 s->smart_class->del(eo_obj); 1086 {
1087 s->smart_class->del(eo_obj);
1088 //this is legacy, this will never be called..., smart things dont have inheitence
1089 sobj->group_del_called = EINA_TRUE;
1090 }
1085 else 1091 else
1086 efl_canvas_group_del(eo_obj); 1092 efl_canvas_group_del(eo_obj);
1087 if (obj->smart.parent) evas_object_smart_member_del(eo_obj); 1093 if (obj->smart.parent) evas_object_smart_member_del(eo_obj);
@@ -1097,7 +1103,6 @@ evas_object_smart_del(Evas_Object *eo_obj)
1097 } 1103 }
1098 } 1104 }
1099 1105
1100 sobj = efl_data_scope_get(eo_obj, MY_CLASS);
1101 free(sobj->interface_privates); 1106 free(sobj->interface_privates);
1102 sobj->interface_privates = NULL; 1107 sobj->interface_privates = NULL;
1103 1108