summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-01-30 18:19:13 +0100
committerRyan Lortie <desrt@desrt.ca>2013-02-11 13:15:34 -0500
commit02c07e6ffea647daaa938d339a8a84b204369bdd (patch)
tree5170b36594bb7fed3202372fe6f882752047e4de /service
parent214f6587aa8f454a44cf3bac5c8ae7ef9161326b (diff)
downloaddconf-02c07e6ffea647daaa938d339a8a84b204369bdd.tar.gz
service: fix a couple of leaks
Fairly harmless leaks. One only happens in an error case (like the disk being full) and the other only happens on startup.
Diffstat (limited to 'service')
-rw-r--r--service/dconf-service.c1
-rw-r--r--service/dconf-writer.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/service/dconf-service.c b/service/dconf-service.c
index fa62437..2d3026e 100644
--- a/service/dconf-service.c
+++ b/service/dconf-service.c
@@ -252,6 +252,7 @@ dconf_service_dbus_register (GApplication *application,
g_object_ref (service), g_object_unref, &local_error);
g_assert_no_error (local_error);
g_array_append_vals (service->subtree_ids, &id, 1);
+ g_free (path);
}
return TRUE;
diff --git a/service/dconf-writer.c b/service/dconf-writer.c
index b274ac9..aa0c96e 100644
--- a/service/dconf-writer.c
+++ b/service/dconf-writer.c
@@ -200,6 +200,7 @@ dconf_writer_real_end (DConfWriter *writer)
while (!g_queue_is_empty (&writer->priv->uncommited_changes))
{
TaggedChange *change = g_queue_pop_head (&writer->priv->uncommited_changes);
+ dconf_changeset_unref (change->changeset);
g_free (change->tag);
g_slice_free (TaggedChange, change);
}