static inline void destroy_package(struct pkg_info *info)
{
- struct context_info *ctx_info;
+ struct context_info *ctx_info __attribute__((unused));
+
EINA_LIST_FREE(info->ctx_list, ctx_info) {
/* This items will be deleted from group_del_livebox */
}
*/
if (info->inst_list) {
EINA_LIST_FOREACH_SAFE(info->inst_list, l, n, inst) {
- instance_destroy(inst, INSTANCE_DESTROY_DEFAULT);
+ instance_destroy(inst, INSTANCE_DESTROY_UNINSTALL);
}
} else {
package_destroy(info);
height = instance_lb_height(inst);
size_type = livebox_service_size_type(width, height);
if (info->lb.size_list & size_type) {
- instance_reload(inst, INSTANCE_DESTROY_PKGMGR);
+ instance_reload(inst, INSTANCE_DESTROY_UPGRADE);
} else {
- instance_destroy(inst, INSTANCE_DESTROY_DEFAULT);
+ instance_destroy(inst, INSTANCE_DESTROY_UNINSTALL);
}
}
}