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