From c3d57ba3537f086692267c33008d84927952c419 Mon Sep 17 00:00:00 2001 From: Brian Whitman Date: Fri, 2 Jan 2026 10:13:47 -0800 Subject: [PATCH] We were mallocing full fat instrument struct, not pointers to them, in this setup --- src/instrument.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instrument.c b/src/instrument.c index 695844d..f25b251 100644 --- a/src/instrument.c +++ b/src/instrument.c @@ -249,7 +249,7 @@ void instruments_deinit() { void instruments_init(int num_instruments) { max_instruments = num_instruments; - instruments = (struct instrument_info **)malloc_caps(max_instruments * sizeof(struct instrument_info), amy_global.config.ram_caps_synth); + instruments = (struct instrument_info **)malloc_caps(max_instruments * sizeof(struct instrument_info *), amy_global.config.ram_caps_synth); for(uint16_t i = 0; i < max_instruments; i++) { instruments[i] = NULL; }