priv->gtkbuilder = gtk_builder_new ();
}
+static void
+free_field (gpointer data)
+{
+ Field *f;
+
+ f = (Field *)data;
+
+ g_free (f->name);
+}
+
+static void
+free_table (gpointer data)
+{
+ Table *t;
+
+ t = (Table *)data;
+
+ g_free (t->name);
+ g_list_free_full (t->fields, free_field);
+ g_free (t->fields_sql);
+ g_list_free_full (t->keys, free_field);
+ g_free (t->keys_sql);
+}
+
+static void
+free_datasource (gpointer data)
+{
+ Datasource *d;
+
+ d = (Datasource *)data;
+
+ g_free (d->name);
+ g_free (d->cnc_string);
+ g_free (d->gdaex);
+ g_list_free_full (d->tables, free_table);
+}
+
static gboolean
load_fields (ZakAudit *zak_audit,
Datasource *datasource,
str_in = NULL;
+ g_list_free_full (priv->datasources, free_datasource);
+
datasource_name = va_arg (ap, char *);
if (datasource_name != NULL)
{