[lasem] suite: use the correct API for full list destruction



commit 1cd2be680c26273405eeb484a6f688a1113eaba9
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 7f1bf8a..1d7feb4 100644
--- a/tests/suite.c
+++ b/tests/suite.c
@@ -133,8 +133,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);
 
        g_key_file_free (suite_options);


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