Mercurial > hg > sidinfo
changeset 255:3c1cb0f39703
OOoops. Use th_llist_free_func_node() instead of th_llist_free_func().
Freeing those linked list items now actually works.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 05 Jan 2020 20:46:15 +0200 |
parents | cc6d8d47dbc2 |
children | 7fdcacbdfc00 |
files | sidlib.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/sidlib.c Sun Jan 05 20:45:12 2020 +0200 +++ b/sidlib.c Sun Jan 05 20:46:15 2020 +0200 @@ -558,8 +558,8 @@ { if (dbh != NULL) { - th_llist_free_func((th_llist_t *) dbh->nodes, - (void (*)(void *)) sidlib_sldb_node_free); + th_llist_free_func_node((th_llist_t *) dbh->nodes, + (void (*)(th_llist_t *)) sidlib_sldb_node_free); dbh->nodes = NULL; dbh->nnodes = 0; @@ -689,8 +689,8 @@ { if (dbh != NULL) { - th_llist_free_func((th_llist_t *) dbh->nodes, - (void (*)(void *)) sidlib_stildb_node_free); + th_llist_free_func_node((th_llist_t *) dbh->nodes, + (void (*)(th_llist_t *)) sidlib_stildb_node_free); dbh->nodes = NULL; dbh->nnodes = 0;