diff options
author | Ted Gould <ted@gould.cx> | 2010-04-16 11:09:33 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-04-16 11:09:33 -0500 |
commit | f7db6d7608892ce17919bcf975c24da65f65f62a (patch) | |
tree | 3d4ef747e7a8e5984efe258338c97aef81791400 /libdbusmenu-glib | |
parent | 7fc5afd02428815be2978548aaf3676e0fd45f37 (diff) | |
parent | e606dae698cb9a4e15fdc260c68744cbee7c3c82 (diff) | |
download | libdbusmenu-f7db6d7608892ce17919bcf975c24da65f65f62a.tar.gz libdbusmenu-f7db6d7608892ce17919bcf975c24da65f65f62a.tar.bz2 libdbusmenu-f7db6d7608892ce17919bcf975c24da65f65f62a.zip |
releasing version 0.2.9-0ubuntu2~ppa2~refs2
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); |