fix: add missing UndoAction fields and null checks to prevent memory corruption

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 23:13:04 +00:00
parent fdeebd29f0
commit f3da43f4db
2 changed files with 23 additions and 9 deletions

View File

@@ -112,7 +112,7 @@ double transport_get_bpm(Transport *transport) {
int transport_process(Transport *transport, jack_nframes_t nframes,
void *midi_clock_in_buf, void *midi_clock_out_buf) {
if (!transport) return 0;
if (!transport) return -1; // ADD THIS
int clock_ticks_generated = 0;