diff options
author | David Robillard <d@drobilla.net> | 2024-07-12 20:48:49 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-12 20:48:49 -0400 |
commit | 7582e28e2737a53bdf98cd7a897541e61bc1cac7 (patch) | |
tree | 511c7008b0a10ff119ca0e54da13e695f4727bfb | |
parent | fa2b39f0338f6ae42b35ae736abeefec5d2185ab (diff) | |
download | jalv-7582e28e2737a53bdf98cd7a897541e61bc1cac7.tar.gz jalv-7582e28e2737a53bdf98cd7a897541e61bc1cac7.tar.bz2 jalv-7582e28e2737a53bdf98cd7a897541e61bc1cac7.zip |
Fix minor memory leaks
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/jalv.c | 1 | ||||
-rw-r--r-- | src/jalv_gtk.c | 6 |
3 files changed, 9 insertions, 1 deletions
@@ -6,12 +6,13 @@ jalv (1.6.9) unstable; urgency=medium * Build Qt UI with -fPIC * Clean up command line help output * Fix clashing command line options + * Fix minor memory leaks * Remove Gtk2 interface * Replace use of deprecated Gtk interfaces * Switch to external zix dependency * Use Gtk switches instead of checkboxes for toggle controls - -- David Robillard <d@drobilla.net> Fri, 12 Jul 2024 17:26:57 +0000 + -- David Robillard <d@drobilla.net> Sat, 13 Jul 2024 00:46:42 +0000 jalv (1.6.8) stable; urgency=medium @@ -1443,6 +1443,7 @@ jalv_close(Jalv* const jalv) } // Clean up + lilv_state_free(jalv->preset); free(jalv->ports); zix_ring_free(jalv->ui_to_plugin); zix_ring_free(jalv->plugin_to_ui); diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c index 5b7240b..1af37ef 100644 --- a/src/jalv_gtk.c +++ b/src/jalv_gtk.c @@ -1175,6 +1175,7 @@ build_control_widget(Jalv* jalv, GtkWidget* window) GTK_ALIGN_START, GTK_ALIGN_BASELINE); + lilv_node_free(group_name); gtk_grid_attach(GTK_GRID(port_grid), group_label, 0, n_rows, 3, 1); ++n_rows; } @@ -1507,6 +1508,11 @@ jalv_frontend_open(Jalv* jalv) gtk_main(); suil_instance_free(jalv->ui_instance); + + for (unsigned i = 0U; i < jalv->controls.n_controls; ++i) { + free(jalv->controls.controls[i]->widget); // free Controller + } + jalv->ui_instance = NULL; zix_sem_post(&jalv->done); return 0; |