aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-16 11:04:16 -0500
committerTed Gould <ted@gould.cx>2010-04-16 11:04:16 -0500
commite606dae698cb9a4e15fdc260c68744cbee7c3c82 (patch)
tree2aef5c920373a962561fc2a6721e5885cfdfb415 /libdbusmenu-glib
parent6085d46272fb067b475f433ecf5a5477dfa4e721 (diff)
downloadlibdbusmenu-e606dae698cb9a4e15fdc260c68744cbee7c3c82.tar.gz
libdbusmenu-e606dae698cb9a4e15fdc260c68744cbee7c3c82.tar.bz2
libdbusmenu-e606dae698cb9a4e15fdc260c68744cbee7c3c82.zip
Reffing oldroot again.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index f5e7115..910f9a1 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -848,6 +848,9 @@ 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);