After a widget is created(obj = elm_widget_add), the object does not have any parent object.
However if user call elm_widget_sub_object_add(parent, obj), then CRI will be happened.
So the exception should be there.
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@57667
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
{
if (sd2->parent_obj == obj)
return;
- elm_widget_sub_object_del(sd2->parent_obj, sobj);
+ if (sd2->parent_obj)
+ elm_widget_sub_object_del(sd2->parent_obj, sobj);
sd2->parent_obj = obj;
if (!sd->child_can_focus && (_is_focusable(sobj)))
sd->child_can_focus = EINA_TRUE;