aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-window.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 07:28:08 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 07:28:08 -0300
commit1a3586db89e70a8ee68efc4a65110dde71c087f1 (patch)
treed312c9a696699e440c64ea11226728c87639df05 /src/camorama-window.c
parentc12d860bd3162706d7a39f37887826063680c04d (diff)
Use g_list_free_full() convenience function
That helps to get rid of two warnings. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/camorama-window.c')
-rw-r--r--src/camorama-window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index 97d2d91..f174512 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -74,10 +74,8 @@ delete_filter_clicked(GtkTreeSelection* sel, GtkMenuItem* menuitem) {
struct weak_target target = {model, NULL};
g_list_foreach(paths, G_FUNC(reference_path), &target);
g_list_foreach(target.list, G_FUNC(delete_filter), model);
- g_list_foreach(target.list, G_FUNC(gtk_tree_row_reference_free), NULL);
- g_list_free(target.list);
- g_list_foreach(paths, G_FUNC(gtk_tree_path_free), NULL);
- g_list_free(paths);
+ g_list_free_full(target.list, (GDestroyNotify)gtk_tree_row_reference_free);
+ g_list_free_full(paths, (GDestroyNotify)gtk_tree_path_free);
}
static void

Privacy Policy