From 030d6a4f5a48fcac6333cc4159fc343141339a15 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 8 Feb 2010 12:21:59 -0600 Subject: We need to reduce the ref count on the old root even if there wasn't a change. --- libdbusmenu-glib/client.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libdbusmenu-glib') diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 2302110..1c1574c 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -778,14 +778,14 @@ parse_layout (DbusmenuClient * client, const gchar * layout) g_object_ref(priv->root); dbusmenu_menuitem_set_root(priv->root, TRUE); - if (oldroot != NULL) { - dbusmenu_menuitem_set_root(oldroot, FALSE); - g_object_unref(oldroot); - } - g_signal_emit(G_OBJECT(client), signals[ROOT_CHANGED], 0, priv->root, TRUE); } + if (oldroot != NULL) { + dbusmenu_menuitem_set_root(oldroot, FALSE); + g_object_unref(oldroot); + } + return 1; } -- cgit v1.2.3