From b0051252aa0be743de3d0345a8a5393592e0ec29 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 1 Jan 2021 21:59:47 +0100 Subject: matemenu-tree: Remove collection_applet_free --- libmenu/matemenu-tree.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libmenu') diff --git a/libmenu/matemenu-tree.c b/libmenu/matemenu-tree.c index 0ee7502..522c545 100644 --- a/libmenu/matemenu-tree.c +++ b/libmenu/matemenu-tree.c @@ -606,12 +606,6 @@ matemenu_tree_get_property (GObject *object, } } -static void -collection_applet_free (char *desktop_name) -{ - g_free (desktop_name); -} - static void matemenu_tree_finalize (GObject *object) { @@ -638,7 +632,7 @@ matemenu_tree_finalize (GObject *object) tree->entries_by_id = NULL; if (tree->collection_applet != NULL) { - g_ptr_array_foreach (tree->collection_applet,(GFunc) collection_applet_free, NULL); + g_ptr_array_foreach (tree->collection_applet, (GFunc) g_free, NULL); g_ptr_array_free (tree->collection_applet, TRUE); tree->collection_applet = NULL; } -- cgit v1.2.1