From f09537ca61cdef6920ff3aeacba75521670a9acd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Nov 2024 15:49:09 -0500 Subject: Factor out jalv_free_nodes() --- src/jalv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/jalv.c') diff --git a/src/jalv.c b/src/jalv.c index 8906d23..4f9d4f6 100644 --- a/src/jalv.c +++ b/src/jalv.c @@ -1212,9 +1212,7 @@ jalv_close(Jalv* const jalv) zix_free(NULL, jalv->ui_msg); zix_free(NULL, jalv->audio_msg); free(jalv->controls_buf); - for (LilvNode** n = (LilvNode**)&jalv->nodes; *n; ++n) { - lilv_node_free(*n); - } + jalv_free_nodes(&jalv->nodes); #if USE_SUIL suil_host_free(jalv->ui_host); #endif -- cgit v1.2.1