[lasem/lasem-0-4] suite: use the correct API for full list destruction



commit f305629c42dcd597b40d8e30dbe42087b11c3532
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri May 24 10:22:57 2019 +0200

    suite: use the correct API for full list destruction

 tests/suite.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/tests/suite.c b/tests/suite.c
index b8b9af8..08e4b80 100644
--- a/tests/suite.c
+++ b/tests/suite.c
@@ -115,8 +115,7 @@ main (int argc, char *argv[])
 
        result = g_test_run();
 
-       g_slist_foreach (files, (GFunc) g_free, NULL);
-       g_slist_free (files);
+       g_slist_free_full (files, g_free);
        g_regex_unref (filename_regex);
 
        lsm_shutdown ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]