aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-28 16:41:39 -0500
committerTed Gould <ted@canonical.com>2009-04-28 16:41:39 -0500
commitf1a04e66561c54fc3120239e2ee5a0240ab50656 (patch)
tree2e70e9e504911ff6b286c54416ec714cc045e8f6 /tests
parent5157797cfa9ebe345c1adbe5cd1de589f6e0c787 (diff)
downloadlibdbusmenu-f1a04e66561c54fc3120239e2ee5a0240ab50656.tar.gz
libdbusmenu-f1a04e66561c54fc3120239e2ee5a0240ab50656.tar.bz2
libdbusmenu-f1a04e66561c54fc3120239e2ee5a0240ab50656.zip
This doesn't crash, not a good sign for using DBus
Diffstat (limited to 'tests')
-rw-r--r--tests/test-glib-layout-client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-glib-layout-client.c b/tests/test-glib-layout-client.c
index 2a1f583..e6fc1ba 100644
--- a/tests/test-glib-layout-client.c
+++ b/tests/test-glib-layout-client.c
@@ -24,13 +24,14 @@ main (int argc, char ** argv)
g_type_init();
DbusmenuClient * client = dbusmenu_client_new(":1.1", "/org/test");
- dbusmenu_client_get_root(client);
- g_timeout_add_seconds(2, timer_func, NULL);
+ g_timeout_add_seconds(2, timer_func, client);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
+ g_object_unref(G_OBJECT(client));
+
if (passed) {
g_debug("Quiting");
return 0;