diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-16 12:21:22 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-16 12:21:22 -0400 |
commit | 4b3d04fba7ad39d7d465feca67eb81e68a4b6123 (patch) | |
tree | f3d37a17d34086c683a5d582f5c9cfc6c0b27ec7 | |
parent | 3e5de7e2239d9e7fc5d402aa3478b192df04e390 (diff) | |
download | dconf-4b3d04fba7ad39d7d465feca67eb81e68a4b6123.tar.gz |
tests/: fix some leaks
-rw-r--r-- | tests/dconf-mock-dbus.c | 3 | ||||
-rw-r--r-- | tests/engine.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/dconf-mock-dbus.c b/tests/dconf-mock-dbus.c index 401a339..1ae7ba0 100644 --- a/tests/dconf-mock-dbus.c +++ b/tests/dconf-mock-dbus.c @@ -34,6 +34,9 @@ dconf_engine_dbus_call_async_func (GBusType bus_type, DConfEngineCallHandle *handle, GError **error) { + g_variant_ref_sink (parameters); + g_variant_unref (parameters); + g_queue_push_tail (&dconf_mock_dbus_outstanding_call_handles, handle); return TRUE; diff --git a/tests/engine.c b/tests/engine.c index 2155e43..5d22f27 100644 --- a/tests/engine.c +++ b/tests/engine.c @@ -697,7 +697,7 @@ test_read (void) guint64 old_state, new_state; /* Step 2: setup the state */ - setup_state (n, i, j, state); + setup_state (n, i, j, (j != k) ? state : NULL); /* Step 3: create the engine */ engine = dconf_engine_new (NULL, NULL); @@ -744,6 +744,7 @@ test_watch_fast (void) table = dconf_mock_gvdb_table_new (); dconf_mock_gvdb_install ("/HOME/.config/dconf/user", table); + table = dconf_mock_gvdb_table_new (); dconf_mock_gvdb_install ("/etc/dconf/db/site", table); triv = g_variant_ref_sink (g_variant_new ("()")); |