From 09c4410076f4fddc5b6f204cf1f7b9eba5f3fd36 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Thu, 1 Feb 2024 05:06:13 +0100 Subject: [PATCH] fix warnings in cmd --- templates/cmd/src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/cmd/src/main.c b/templates/cmd/src/main.c index 5932ccb..070df2e 100644 --- a/templates/cmd/src/main.c +++ b/templates/cmd/src/main.c @@ -520,12 +520,12 @@ int main(int argc, char * argv[]) { tinywav_close_write(&tw_out); #endif err_outfile: -err_midi_parse: #if NUM_MIDI_INPUTS > 0 +err_midi_parse: if (midi_data != NULL) free(midi_data); -#endif err_midi_read: +#endif #if NUM_CHANNELS_OUT > 0 free(y_buf); #endif @@ -538,8 +538,8 @@ err_x_buf: free(mem); err_mem_alloc: plugin_fini(&instance); -err_num_channels_in: #if NUM_CHANNELS_IN > 0 +err_num_channels_in: tinywav_close_read(&tw_in); #endif