Do not manage the access chain.
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 4 Nov 2013 05:34:36 +0000 (14:34 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 4 Nov 2013 05:34:36 +0000 (14:34 +0900)
it will be invoked by edje_part delete callback.

Change-Id: I146aac2042d18905fdd075f1027b017af87ad5b4

src/script_port.c

index bbacbd3..424f509 100644 (file)
@@ -1058,11 +1058,6 @@ static void edje_del_cb(void *_info, Evas *e, Evas_Object *obj, void *event_info
        struct obj_info *obj_info;
        struct obj_info *parent_obj_info;
        struct child *child;
-       Eina_List *l;
-       Eina_List *n;
-       Evas_Object *ao;
-       Evas_Object *edje_part;
-       Evas_Object *edje;
 
        handle->obj_list = eina_list_remove(handle->obj_list, obj);
 
@@ -1110,6 +1105,12 @@ static void edje_del_cb(void *_info, Evas *e, Evas_Object *obj, void *event_info
                free(child);
        }
 
+#if 0
+       Eina_List *l;
+       Eina_List *n;
+       Evas_Object *ao;
+       Evas_Object *edje_part;
+       Evas_Object *edje;
        EINA_LIST_FOREACH_SAFE(handle->access_chain, l, n, edje_part) {
                ao = evas_object_data_get(edje_part, "ao");
                if (ao) {
@@ -1132,6 +1133,7 @@ static void edje_del_cb(void *_info, Evas *e, Evas_Object *obj, void *event_info
                        elm_access_object_unregister(ao);
                }
        }
+#endif
 
        free(obj_info->id);
        free(obj_info);