static void free_pkg_data(pkg_data_s *pkg_data)
{
- if(pkg_data->pkgid)
+ if (pkg_data->pkgid)
free(pkg_data->pkgid);
- if(pkg_data->label)
+ if (pkg_data->label)
free(pkg_data->label);
- if(pkg_data->icon)
+ if (pkg_data->icon)
free(pkg_data->icon);
- if(pkg_data->applist)
+ if (pkg_data->applist)
g_list_free_full(pkg_data->applist, free);
- if(pkg_data->privlist)
+ if (pkg_data->privlist)
g_list_free_full(pkg_data->privlist, free);
}
LOGD("terminate app %s", pkgid);
for (l = pkg_data_list; l != NULL; l = l->next) {
pkg_data_s* pd = (pkg_data_s*)l->data;
- if (strcmp(pd->pkgid, pkgid) == 0)
- {
+ if (strcmp(pd->pkgid, pkgid) == 0) {
/* Retrieve app list */
for (ll = pd->applist; ll != NULL; ll = ll->next) {
char* appid = (char*)ll->data;