core: Another GLib 2.30 build fix

This commit is contained in:
Colin Walters 2011-11-14 15:31:53 -05:00
parent 6e05f78f12
commit 9dc6ddce08

View File

@ -442,8 +442,10 @@ ostree_repo_write_config (OstreeRepo *self,
if (!g_file_set_contents (priv->config_path, data, len, error))
goto out;
g_key_file_unref (priv->config);
priv->config = g_key_file_ref (new_config);
g_key_file_free (priv->config);
priv->config = g_key_file_new ();
if (!g_key_file_load_from_data (priv->config, data, len, 0, error))
goto out;
ret = TRUE;
out: