aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app-menu-item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 5ffe74f..c276a90 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -431,7 +431,7 @@ root_changed (DbusmenuClient * client, DbusmenuMenuitem * newroot, gpointer data
if (priv->root != NULL) {
if (dbusmenu_menuitem_get_children(DBUSMENU_MENUITEM(priv->root)) != NULL) {
- g_list_foreach(priv->shortcuts, func_unref, NULL);
+ g_list_foreach(priv->shortcuts, func_unref, data);
g_list_free(priv->shortcuts);
priv->shortcuts = NULL;
}