fix: remove null check for clip buffer in trigger command

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 23:31:56 +00:00
parent 73f1c355fe
commit 5423daabb1

View File

@@ -285,7 +285,6 @@ void engine_process_commands(Engine *engine) {
case CMD_TRIGGER_CLIP: {
if (cmd.index < 0 || cmd.index >= MAX_CLIPS) break;
Clip *clip = &engine->clips[cmd.index];
if (!clip->buffer) break; // ADD THIS - prevent segfault on freed buffer
// Record undo action
UndoAction action;