From 0cfd660b0e76a4801d6b1b39e2e4b8024456c09d Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 30 Aug 2019 16:52:45 +0300 Subject: [PATCH 1/2] tap-backend.c: Use g_list_free_full() where applicable Signed-off-by: Sergey Ponomarev --- thunar-archive-plugin/tap-backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thunar-archive-plugin/tap-backend.c b/thunar-archive-plugin/tap-backend.c index 7941d9d..a782004 100644 --- a/thunar-archive-plugin/tap-backend.c +++ b/thunar-archive-plugin/tap-backend.c @@ -224,7 +224,7 @@ tap_backend_mime_applications (GList *content_types) } /* release the list of applications for this mime type */ - g_list_foreach (list, (GFunc) g_object_unref, NULL); + g_list_free_full (list, g_object_unref); g_list_free (list); } @@ -338,7 +338,7 @@ tap_backend_mime_application (GList *content_types, } /* cleanup */ - g_list_foreach (mime_applications, (GFunc) g_object_unref, NULL); + g_list_free_full (mime_applications, g_object_unref); g_list_free (mime_applications); } @@ -459,7 +459,7 @@ tap_backend_run (const gchar *action, } /* cleanup */ - g_list_foreach (content_types, (GFunc) g_free, NULL); + g_list_free_full (content_types, g_free); g_list_free (content_types); return pid; -- 2.20.1