efl_ui_table: remove callbacks when item is removed
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Thu, 4 Apr 2019 11:46:53 +0000 (13:46 +0200)
committerYeongjong Lee <yj34.lee@samsung.com>
Wed, 24 Apr 2019 05:24:47 +0000 (14:24 +0900)
everything else is wrong.

Reviewed-by: YeongJong Lee <yj34.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D8556

src/lib/elementary/efl_ui_table.c

index 2dabef1..f88a793 100644 (file)
@@ -468,6 +468,7 @@ end:
          eina_inlist_remove(EINA_INLIST_GET(pd->items), EINA_INLIST_GET(gi));
    pd->count--;
    efl_key_data_set(subobj, TABLE_ITEM_KEY, NULL);
+   efl_event_callback_array_del(subobj, subobj_callbacks(), obj);
    free(gi);
 }