Record in each GSettingsSchema object the source from which it came.
This will be useful in future commits.
https://bugzilla.gnome.org/show_bug.cgi?id=668232
**/
struct _GSettingsSchema
{
+ GSettingsSchemaSource *source;
const gchar *gettext_domain;
const gchar *path;
GQuark *items;
return NULL;
schema = g_slice_new0 (GSettingsSchema);
+ schema->source = g_settings_schema_source_ref (source);
schema->ref_count = 1;
schema->id = g_strdup (schema_id);
schema->table = table;
{
if (g_atomic_int_dec_and_test (&schema->ref_count))
{
+ g_settings_schema_source_unref (schema->source);
gvdb_table_unref (schema->table);
g_free (schema->items);
g_free (schema->id);