From 05f796fba0cef3cc62dc6df2f32317589e06eac6 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Mon, 26 Feb 2024 21:38:59 +0100 Subject: Small fixes --- source/saw/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/saw/main.c b/source/saw/main.c index 721eb76..10912b0 100644 --- a/source/saw/main.c +++ b/source/saw/main.c @@ -1823,7 +1823,7 @@ static void saw_ui_sampler(saw_sampler_t *sampler, i64 x0, i64 y0, &sample_rate, &count, NULL); if (samples == NULL) { - printf("drwav_open_file_and_read_pcm_frames_f32 failed.\n"); + printf("drwav_open_memory_and_read_pcm_frames_f32 failed.\n"); fflush(stdout); } else { DA_RESIZE(sampler->data, count * 2); @@ -3202,6 +3202,11 @@ static void saw_cleanup(void) { for (i64 i = 0; i < TRACK_COUNT; i++) if (saw_tracks[i].instrument == INSTRUMENT_SAMPLER) saw_sampler_cleanup(&saw_tracks[i].sampler); + + // Cleanup buffers + // + if (saw_drop_file_data.size != 0) + DA_DESTROY(saw_drop_file_data); } #ifdef __EMSCRIPTEN__ -- cgit v1.2.3