diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/saw/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
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__ |