diff options
author | David Robillard <d@drobilla.net> | 2024-11-17 10:49:38 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:04:51 -0500 |
commit | da2be0adcd029ec65bfed26af4f811e244705730 (patch) | |
tree | b15df23958a5b2a3d80763b084833bf9fc49f609 /src/jalv.c | |
parent | 1c788efec00951afe893be363f83c125cb19db23 (diff) | |
download | jalv-da2be0adcd029ec65bfed26af4f811e244705730.tar.gz jalv-da2be0adcd029ec65bfed26af4f811e244705730.tar.bz2 jalv-da2be0adcd029ec65bfed26af4f811e244705730.zip |
Factor out free_control()
Diffstat (limited to 'src/jalv.c')
-rw-r--r-- | src/jalv.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1229,15 +1229,7 @@ jalv_close(Jalv* const jalv) #endif for (unsigned i = 0; i < jalv->controls.n_controls; ++i) { - ControlID* const control = jalv->controls.controls[i]; - lilv_node_free(control->node); - lilv_node_free(control->symbol); - lilv_node_free(control->label); - lilv_node_free(control->group); - lilv_node_free(control->min); - lilv_node_free(control->max); - lilv_node_free(control->def); - free(control); + free_control(jalv->controls.controls[i]); } free(jalv->controls.controls); |