diff options
author | Ted Gould <ted@canonical.com> | 2009-05-25 22:56:31 +0200 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-05-25 22:56:31 +0200 |
commit | 7967d870eee94c0ce26cf820a6f6e556ee9cea48 (patch) | |
tree | d5372136c9975847c1128c04e90c0f99283b6257 /tests | |
parent | 3b4051390bfb7e150f552da448e00dece4fbdf2f (diff) | |
download | libdbusmenu-7967d870eee94c0ce26cf820a6f6e556ee9cea48.tar.gz libdbusmenu-7967d870eee94c0ce26cf820a6f6e556ee9cea48.tar.bz2 libdbusmenu-7967d870eee94c0ce26cf820a6f6e556ee9cea48.zip |
Unref'ing the menuitem after being created.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-glib-properties-server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-glib-properties-server.c b/tests/test-glib-properties-server.c index 477f951..c9d2880 100644 --- a/tests/test-glib-properties-server.c +++ b/tests/test-glib-properties-server.c @@ -40,7 +40,7 @@ layout2menuitem (proplayout_t * layout) } } - g_debug("Layout to menu return: 0x%X", (unsigned int)local); + /* g_debug("Layout to menu return: 0x%X", (unsigned int)local); */ return local; } @@ -57,7 +57,9 @@ timer_func (gpointer data) } g_debug("Updating to Layout %d", layouton); - dbusmenu_server_set_root(server, layout2menuitem(&layouts[layouton])); + DbusmenuMenuitem * mi = layout2menuitem(&layouts[layouton]); + dbusmenu_server_set_root(server, mi); + g_object_unref(G_OBJECT(mi)); layouton++; return TRUE; |