From 02eafb582186021a7eab2863c88f3275b68c8f5e Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Jan 2020 10:51:23 +0100 Subject: [PATCH] libmm-glib,test: avoid using deprecated mm_pco_list_free() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test-pco.c: In function ‘test_pco_list_add’: test-pco.c:82:5: warning: ‘mm_pco_list_free’ is deprecated [-Wdeprecated-declarations] 82 | mm_pco_list_free (list); | ^~~~~~~~~~~~~~~~ In file included from ../../libmm-glib/libmm-glib.h:82, from test-pco.c:17: ../../libmm-glib/mm-pco.h:67:6: note: declared here 67 | void mm_pco_list_free (GList *pco_list); | ^~~~~~~~~~~~~~~~ --- libmm-glib/tests/test-pco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmm-glib/tests/test-pco.c b/libmm-glib/tests/test-pco.c index 086ce3ba..4b09d4c9 100644 --- a/libmm-glib/tests/test-pco.c +++ b/libmm-glib/tests/test-pco.c @@ -79,7 +79,7 @@ test_pco_list_add (void) g_assert_cmpint (memcmp (pco_data, expected_pco->pco_data, pco_data_size), ==, 0); } - mm_pco_list_free (list); + g_list_free_full (list, g_object_unref); } /**************************************************************/