From 79a1dca3a9d10ced5425c932351e90c182098ad3 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 3 Feb 2025 12:21:52 -0400 Subject: [PATCH] MT#55283 add t_list_free Change-Id: Ie8438e14f73c5f57cb1197e764ec002df5cf117c --- lib/containers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/containers.h b/lib/containers.h index 93e5bbcc9..2665ac4b3 100644 --- a/lib/containers.h +++ b/lib/containers.h @@ -403,6 +403,10 @@ static inline void g_queue_clear_full(GQueue *q, GDestroyNotify free_func) { __ret; \ }) +#define t_list_free(L) ({ \ + g_list_free(&(L)->l); \ + }) + #define TYPED_GPTRARRAY_FULL(type_name, contained_type, free_func) \ typedef union { \