From 4392bdd9cf47a5ff16f0467448b0c01e7c800439 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 18 Apr 2021 12:52:47 +0200 Subject: caja-window-menus: remove -Wcast-function-type warning --- src/caja-window-menus.c | 4 +--- 1 file changed, 1 insertion(+), 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); } } -- cgit v1.2.1