We need to free varialbe after use variable.
CID : 29780
Change-Id: I50f3dd0cc0472038288d4efc74efbc4bcdf57e4a
EINA_LIST_FOREACH_SAFE(ugd->paired_device, l, l_next, item) {
if (item && (item == dev)) {
- elm_object_item_del(item->genlist_item);
+ if (item->genlist_item) {
+ elm_object_item_del(item->genlist_item);
+ item->genlist_item = NULL;
+ }
ugd->paired_device =
eina_list_remove_list(ugd->paired_device, l);
_bt_util_free_device_item(item);