summaryrefslogtreecommitdiff
path: root/src/tc-list.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-03-11 18:24:13 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-03-11 18:24:13 +0100
commit980784c1917f19bfd2e9b11faca76d14e8589daa (patch)
treec9b3988642585cd50af5ec1ffad75331886c0aa4 /src/tc-list.c
parentbfef0924f58eab930bdd826ac0132786abc32220 (diff)
New upstream version 4.12upstream/4.12
Diffstat (limited to 'src/tc-list.c')
-rw-r--r--src/tc-list.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tc-list.c b/src/tc-list.c
index e0087e3..2fd6380 100644
--- a/src/tc-list.c
+++ b/src/tc-list.c
@@ -69,8 +69,14 @@ static void l_dump(bool pop)
while ((obj = (pop ?
HXclist_pop(&strings_ct, struct text_object, list) :
HXclist_shift(&strings_ct, struct text_object, list)
- )) != NULL)
+ )) != NULL) {
printf("%s item %u (\"%s\")\n", msg[pop], ++i, obj->id);
+#ifdef __cplusplus
+ delete obj;
+#else
+ free(obj);
+#endif
+ }
printf("Remaining elements: %u\n", strings_ct.items);
}