static void sim_config_impl_finalize (GObject *gobject) { SimConfig *config = (SimConfig *) gobject; GList *list; list = config->datasources; while (list) { SimConfigDS *ds = (SimConfigDS *) list->data; sim_config_ds_free (ds); list = list->next; } list = config->notifies; while (list) { SimConfigNotify *notify = (SimConfigNotify *) list->data; sim_config_notify_free (notify); list = list->next; } if (config->log.filename) g_free (config->log.filename); if (config->directive.filename) g_free (config->directive.filename); g_free (config->reputation.filename); if (config->server.name) g_free (config->server.name); if (config->server.ip) g_free (config->server.ip); if (config->server.role) g_free (config->server.role); if (config->notify_prog) g_free (config->notify_prog); if (config->server.HA_ip) g_free (config->server.HA_ip); if (config->smtp.host) g_free (config->smtp.host); if (config->framework.name) g_free (config->framework.name); if (config->framework.host) g_free (config->framework.host); G_OBJECT_CLASS (parent_class)->finalize (gobject); }
static void sim_config_impl_finalize (GObject *gobject) { SimConfig *config = (SimConfig *) gobject; GList *list; list = config->datasources; while (list) { SimConfigDS *ds = (SimConfigDS *) list->data; sim_config_ds_free (ds); list = list->next; } list = config->notifies; while (list) { SimConfigNotify *notify = (SimConfigNotify *) list->data; sim_config_notify_free (notify); list = list->next; } if (config->component_id) g_object_unref (config->component_id); if (config->default_context_id) g_object_unref (config->default_context_id); if (config->default_engine_id) g_object_unref (config->default_engine_id); if (config->log.filename) g_free (config->log.filename); if (config->directive.filename) g_free (config->directive.filename); if (config->reputation.filename) g_free (config->reputation.filename); if (config->server.id) g_object_unref (config->server.id); if (config->server.name) g_free (config->server.name); if (config->server.ip) g_free (config->server.ip); if (config->server.role) sim_role_unref (config->server.role); if (config->notify_prog) g_free (config->notify_prog); if (config->server.HA_ip) g_free (config->server.HA_ip); if (config->smtp.host) g_free (config->smtp.host); if (config->framework.name) g_free (config->framework.name); if (config->framework.host) g_free (config->framework.host); //Forensic Storage if (config->forensic_storage.path) g_free (config->forensic_storage.path); if (config->forensic_storage.sig_type) g_free (config->forensic_storage.sig_type); if (config->forensic_storage.sig_cipher) g_free (config->forensic_storage.sig_cipher); if (config->forensic_storage.enc_type) g_free (config->forensic_storage.enc_type); if (config->forensic_storage.enc_cipher) g_free (config->forensic_storage.enc_cipher); if (config->forensic_storage.key_source) g_free (config->forensic_storage.key_source); if (config->forensic_storage.sig_prv_key_path) g_free (config->forensic_storage.sig_prv_key_path); if (config->forensic_storage.sig_pub_key_path) g_free (config->forensic_storage.sig_pub_key_path); if (config->forensic_storage.enc_prv_key_path) g_free (config->forensic_storage.enc_prv_key_path); if (config->forensic_storage.enc_pass) g_free (config->forensic_storage.enc_pass); if (config->forensic_storage.enc_pub_key_path) g_free (config->forensic_storage.enc_pub_key_path); if (config->forensic_storage.enc_cert_path) g_free (config->forensic_storage.enc_cert_path); if (config->idm.ip) g_free (config->idm.ip); G_OBJECT_CLASS (parent_class)->finalize (gobject); }