[dconf] service: fix a couple of leaks
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] service: fix a couple of leaks
- Date: Mon, 11 Feb 2013 19:29:43 +0000 (UTC)
commit 02c07e6ffea647daaa938d339a8a84b204369bdd
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Jan 30 18:19:13 2013 +0100
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.
service/dconf-service.c | 1 +
service/dconf-writer.c | 1 +
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]