aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-16 10:47:39 -0500
committerTed Gould <ted@gould.cx>2010-04-16 10:47:39 -0500
commit6085d46272fb067b475f433ecf5a5477dfa4e721 (patch)
treef571830e26a9cfb8799e65c434d94baa7f751715 /libdbusmenu-glib
parent623b9c346ee991dfbff7fe89ff80834127a39014 (diff)
downloadlibdbusmenu-6085d46272fb067b475f433ecf5a5477dfa4e721.tar.gz
libdbusmenu-6085d46272fb067b475f433ecf5a5477dfa4e721.tar.bz2
libdbusmenu-6085d46272fb067b475f433ecf5a5477dfa4e721.zip
Since we already have a ref to root, we don't need to make another.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 910f9a1..f5e7115 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -848,9 +848,6 @@ parse_layout (DbusmenuClient * client, const gchar * layout)
xmlNodePtr root = xmlDocGetRootElement(xmldoc);
DbusmenuMenuitem * oldroot = priv->root;
- if (oldroot != NULL) {
- g_object_ref(oldroot);
- }
priv->root = parse_layout_xml(client, root, priv->root, NULL, priv->menuproxy);
xmlFreeDoc(xmldoc);