diff options
author | Ted Gould <ted@canonical.com> | 2009-05-25 23:08:14 +0200 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-05-25 23:08:14 +0200 |
commit | 4614822dddd73d5ab16f7f97555f99e8b5460d4c (patch) | |
tree | 8a21db89ce96eca2db051c4142b9234fd17cf61d /libdbusmenu-glib | |
parent | 7967d870eee94c0ce26cf820a6f6e556ee9cea48 (diff) | |
download | libdbusmenu-4614822dddd73d5ab16f7f97555f99e8b5460d4c.tar.gz libdbusmenu-4614822dddd73d5ab16f7f97555f99e8b5460d4c.tar.bz2 libdbusmenu-4614822dddd73d5ab16f7f97555f99e8b5460d4c.zip |
Unref'ing the object put into the GValue as it gets reffed there.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 562b2d7..cf8ea85 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -490,6 +490,7 @@ dbusmenu_server_set_root (DbusmenuServer * self, DbusmenuMenuitem * root) g_value_init(&rootvalue, G_TYPE_OBJECT); g_value_set_object(&rootvalue, root); g_object_set_property(G_OBJECT(self), DBUSMENU_SERVER_PROP_ROOT_NODE, &rootvalue); + g_object_unref(G_OBJECT(root)); return; } |