diff options
author | Ted Gould <ted@gould.cx> | 2010-04-16 11:50:20 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-04-16 11:50:20 -0500 |
commit | 541193c9c95a4ee22286a9f43abf05741361f702 (patch) | |
tree | 4443bf18ae60683d88a5a8c9ad3405773bd9178a /libdbusmenu-glib | |
parent | f8cf97fa209b64c4f466cda3c33bbec068a4539c (diff) | |
download | libdbusmenu-541193c9c95a4ee22286a9f43abf05741361f702.tar.gz libdbusmenu-541193c9c95a4ee22286a9f43abf05741361f702.tar.bz2 libdbusmenu-541193c9c95a4ee22286a9f43abf05741361f702.zip |
Removing the unref that was causing issues so that we can remove an extra ref of the root item.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 910f9a1..c8706ac 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -749,8 +749,6 @@ parse_layout_xml(DbusmenuClient * client, xmlNodePtr node, DbusmenuMenuitem * it if (parent != NULL) { dbusmenu_menuitem_child_delete(parent, item); } - /* XXX: Should this be an unref? Who's reffing this that it exists without a parent? */ - g_object_unref(G_OBJECT(item)); item = NULL; } @@ -848,9 +846,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); |