diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-21 21:23:33 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-21 21:23:33 +0200 |
commit | 6eddfddeb9da77b6523d8e1ebc2e75c8b5dc5ac9 (patch) | |
tree | a91cb3fe015335f1e39d15cfb43d9d1d934fb679 /src/tc-list.c | |
parent | 7501bff8432444b7ae8e7f3d9289c0d61f3f0b64 (diff) | |
parent | 448048363acac15d165200cfdabda02a0e8b9e9b (diff) |
Merge branch 'release/debian/4.14-1'debian/4.14-1
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); } |