diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-03-11 18:24:14 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-03-11 18:24:14 +0100 |
commit | 3cd3fca072b0f0958d260a5b147bb09df165bd0f (patch) | |
tree | c9a7de96002ffaa5df663540398f81d7ba69241e /src/tc-list.c | |
parent | 2feb2da15867887be02beaadf9a92d2e8a997b85 (diff) | |
parent | 980784c1917f19bfd2e9b11faca76d14e8589daa (diff) |
Update upstream source from tag 'upstream/4.12'
Update to upstream version '4.12'
with Debian dir 2e81fc9e49b613c77c6c552b837c5a8ee952b59b
Diffstat (limited to 'src/tc-list.c')
-rw-r--r-- | src/tc-list.c | 8 |
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); } |