diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 10:51:23 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 15:18:35 +0100 |
commit | 02eafb582186021a7eab2863c88f3275b68c8f5e (patch) | |
tree | 249ae97c5802d62540f604b0c2a76affdb3a2b7d /libmm-glib | |
parent | 9e24226364f9c635160cdb0ca8a404781091ba7b (diff) |
libmm-glib,test: avoid using deprecated mm_pco_list_free()
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);
| ^~~~~~~~~~~~~~~~
Diffstat (limited to 'libmm-glib')
-rw-r--r-- | libmm-glib/tests/test-pco.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } /**************************************************************/ |