internal: Fix list deinitialization

This commit is contained in:
Laria 2021-12-15 21:26:13 +01:00
parent fd3c5702ca
commit af33887131

View file

@ -11,6 +11,9 @@ extern "C" {
#define DEINIT_LIST(items, len, item_deinit) \
do { \
if ((items) == NULL) { \
break; \
} \
for (size_t i = 0; i < (len); i++) { \
item_deinit(&((items)[i])); \
} \