free((void *)metadata->key);
if (metadata->value)
free((void *)metadata->value);
- free((void*)metadata);
+ free((void *)metadata);
}
static void __ps_free_permission(gpointer data)
free((void *)permission->type);
if (permission->value)
free((void *)permission->value);
- free((void*)permission);
+ free((void *)permission);
}
static void __ps_free_icon(gpointer data)
free((void *)icon->resolution);
if (icon->dpi)
free((void *)icon->dpi);
- free((void*)icon);
+ free((void *)icon);
}
static void __ps_free_image(gpointer data)
free((void *)image->lang);
if (image->section)
free((void *)image->section);
- free((void*)image);
+ free((void *)image);
}
static void __ps_free_notification(gpointer data)
free((void *)notification->text);
if (notification->name)
free((void *)notification->name);
- free((void*)notification);
+ free((void *)notification);
}
static void __ps_free_compatibility(gpointer data)
free((void *)compatibility->text);
if (compatibility->name)
free((void *)compatibility->name);
- free((void*)compatibility);
-}
-
-static void __ps_free_datacontrol(gpointer data)
-{
- datacontrol_x *datacontrol = (datacontrol_x *)data;
- if (datacontrol == NULL)
- return;
- if (datacontrol->providerid)
- free((void *)datacontrol->providerid);
- if (datacontrol->access)
- free((void *)datacontrol->access);
- if (datacontrol->type)
- free((void *)datacontrol->type);
- free((void*)datacontrol);
+ free((void *)compatibility);
}
static void __ps_free_appcontrol(gpointer data)
/*Free Mime*/
if (appcontrol->mime)
free((void *)appcontrol->mime);
- free((void*)appcontrol);
+ if (appcontrol->privileges)
+ g_list_free_full(appcontrol->privileges, free);
+ free((void *)appcontrol);
}
static void __ps_free_define(gpointer data)
g_list_free_full(define->request, free);
/*Free Allowed*/
g_list_free_full(define->allowed, free);
- free((void*)define);
+ free((void *)define);
}
static void __ps_free_datashare(gpointer data)
g_list_free_full(datashare->define, __ps_free_define);
/*Free Request*/
g_list_free_full(datashare->request, free);
- free((void*)datashare);
+ free((void *)datashare);
}
static void __ps_free_label(gpointer data)
free((void *)label->text);
if (label->lang)
free((void *)label->lang);
- free((void*)label);
+ free((void *)label);
}
static void __ps_free_author(gpointer data)
free((void *)author->href);
if (author->lang)
free((void *)author->lang);
- free((void*)author);
+ free((void *)author);
}
static void __ps_free_description(gpointer data)
free((void *)description->text);
if (description->lang)
free((void *)description->lang);
- free((void*)description);
+ free((void *)description);
}
static void __ps_free_license(gpointer data)
free((void *)license->text);
if (license->lang)
free((void *)license->lang);
- free((void*)license);
+ free((void *)license);
}
static void __ps_free_splashscreen(gpointer data)
free((void *)splashscreen->orientation);
if (splashscreen->indicatordisplay)
free((void *)splashscreen->indicatordisplay);
+ if (splashscreen->operation)
+ free((void *)splashscreen->operation);
+ if (splashscreen->color_depth)
+ free((void *)splashscreen->color_depth);
free((void *)splashscreen);
}
+static void __ps_free_privilege(gpointer data)
+{
+ privilege_x *privilege = (privilege_x *)data;
+ if (privilege == NULL)
+ return;
+ if (privilege->type)
+ free((void *)privilege->type);
+ if (privilege->value)
+ free((void *)privilege->value);
+ free((void *)privilege);
+}
+
+static void __ps_free_appdefined_privilege(gpointer data)
+{
+ appdefined_privilege_x *privilege = (appdefined_privilege_x *)data;
+ if (privilege == NULL)
+ return;
+ if (privilege->type)
+ free((void *)privilege->type);
+ if (privilege->value)
+ free((void *)privilege->value);
+ if (privilege->license)
+ free((void *)privilege->license);
+ free((void *)privilege);
+}
+
+static void __ps_free_datacontrol(gpointer data)
+{
+ datacontrol_x *datacontrol = (datacontrol_x *)data;
+ if (datacontrol == NULL)
+ return;
+ if (datacontrol->providerid)
+ free((void *)datacontrol->providerid);
+ if (datacontrol->access)
+ free((void *)datacontrol->access);
+ if (datacontrol->type)
+ free((void *)datacontrol->type);
+ if (datacontrol->trusted)
+ free((void *)datacontrol->trusted);
+ if (datacontrol->privileges)
+ g_list_free_full(datacontrol->privileges, free);
+ free((void *)datacontrol);
+}
+
static void __ps_free_application(gpointer data)
{
application_x *application = (application_x *)data;
free((void *)application->autorestart);
if (application->taskmanage)
free((void *)application->taskmanage);
- if (application->enabled)
- free((void *)application->enabled);
if (application->categories)
free((void *)application->categories);
if (application->extraid)
free((void *)application->package);
if (application->support_disable)
free((void *)application->support_disable);
+ if (application->tep_name)
+ free((void *)application->tep_name);
+ if (application->zip_mount_file)
+ free((void *)application->zip_mount_file);
+ if (application->root_path)
+ free((void *)application->root_path);
+ if (application->api_version)
+ free((void *)application->api_version);
+ if (application->for_all_users)
+ free((void *)application->for_all_users);
+ if (application->effective_appid)
+ free((void *)application->effective_appid);
+ if (application->is_disabled)
+ free((void *)application->is_disabled);
+ if (application->splash_screen_display)
+ free((void *)application->splash_screen_display);
+ if (application->effectimage_type)
+ free((void *)application->effectimage_type);
+ if (application->package_type)
+ free((void *)application->package_type);
+ if (application->support_ambient)
+ free((void *)application->support_ambient);
+ if (application->alias_appid)
+ free((void *)application->alias_appid);
+ if (application->external_path)
+ free((void *)application->external_path);
+ if (application->package_system)
+ free((void *)application->package_system);
+ if (application->removable)
+ free((void *)application->removable);
+ if (application->package_installed_time)
+ free((void *)application->package_installed_time);
+ if (application->support_mode)
+ free((void *)application->support_mode);
+ if (application->setup_appid)
+ free((void *)application->setup_appid);
/*Free Label*/
g_list_free_full(application->label, __ps_free_label);
free((void *)package->support_disable);
if (package->tep_name)
free((void *)package->tep_name);
+ if (package->zip_mount_file)
+ free((void *)package->zip_mount_file);
+ if (package->external_path)
+ free((void *)package->external_path);
+ if (package->support_mode)
+ free((void *)package->support_mode);
+ if (package->use_system_certs)
+ free((void *)package->use_system_certs);
/*Free Icon*/
g_list_free_full(package->icon, __ps_free_icon);
/*Free License*/
g_list_free_full(package->license, __ps_free_license);
/*Free Privileges*/
- g_list_free_full(package->privileges, free);
+ g_list_free_full(package->privileges, __ps_free_privilege);
+ /*Free AppDefined Privileges*/
+ g_list_free_full(package->appdefined_privileges,
+ __ps_free_appdefined_privilege);
+ /*Free Providing AppDefined Privileges*/
+ g_list_free_full(package->provides_appdefined_privileges,
+ __ps_free_appdefined_privilege);
/*Free Application*/
g_list_free_full(package->application, __ps_free_application);
/*Free Compatibility*/
g_list_free_full(package->compatibility, __ps_free_compatibility);
/*Free Device profiles*/
g_list_free_full(package->deviceprofile, free);
- free((void*)package);
- return;
+ free((void *)package);
}