From f1a04e66561c54fc3120239e2ee5a0240ab50656 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 28 Apr 2009 16:41:39 -0500 Subject: This doesn't crash, not a good sign for using DBus --- tests/test-glib-layout-client.c | 5 +++-- 1 file 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; -- cgit v1.2.3