summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-04-18 12:52:47 +0200
committerraveit65 <[email protected]>2021-04-20 09:18:19 +0200
commit4392bdd9cf47a5ff16f0467448b0c01e7c800439 (patch)
treef98af98f4d11729140192041ee229b7906467ae8 /src
parent82ff136d1bcd31d73c787c27e71fb57cb540a522 (diff)
downloadcaja-4392bdd9cf47a5ff16f0467448b0c01e7c800439.tar.bz2
caja-4392bdd9cf47a5ff16f0467448b0c01e7c800439.tar.xz
caja-window-menus: remove -Wcast-function-type warning
Diffstat (limited to 'src')
-rw-r--r--src/caja-window-menus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/caja-window-menus.c b/src/caja-window-menus.c
index 83fe6ba3..7737067e 100644
--- a/src/caja-window-menus.c
+++ b/src/caja-window-menus.c
@@ -1208,9 +1208,7 @@ caja_window_load_extension_menus (CajaWindow *window)
if (items != NULL)
{
add_extension_menu_items (window, merge_id, action_group, items, "");
-
- g_list_foreach (items, (GFunc) g_object_unref, NULL);
- g_list_free (items);
+ g_list_free_full (items, g_object_unref);
}
}