diff options
author | Ted Gould <ted@gould.cx> | 2010-04-16 11:04:16 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-04-16 11:04:16 -0500 |
commit | e606dae698cb9a4e15fdc260c68744cbee7c3c82 (patch) | |
tree | 2aef5c920373a962561fc2a6721e5885cfdfb415 /libdbusmenu-glib | |
parent | 6085d46272fb067b475f433ecf5a5477dfa4e721 (diff) | |
download | libdbusmenu-e606dae698cb9a4e15fdc260c68744cbee7c3c82.tar.gz libdbusmenu-e606dae698cb9a4e15fdc260c68744cbee7c3c82.tar.bz2 libdbusmenu-e606dae698cb9a4e15fdc260c68744cbee7c3c82.zip |
Reffing oldroot again.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 3 |
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); |