List doesn't remove the released item.
So it can generate the crash while crawling the list.
Change-Id: I27eb10482353d690dca5380a70937adaebf4e798
}
item->status = PKGMGR_STATUS_START;
- s_info.item_list = eina_list_append(s_info.item_list, item);
if (!strcasecmp(val, "download")) {
item->type = PKGMGR_EVENT_DOWNLOAD;
return LB_STATUS_ERROR_INVALID;
}
+ s_info.item_list = eina_list_append(s_info.item_list, item);
+
invoke_callback(pkgname, item, 0.0f);
return LB_STATUS_SUCCESS;
}