Skip to content

Commit 9f6348f

Browse files
committed
fix slight memory leak with cancel events
1 parent ee005a8 commit 9f6348f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/rce.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ export async function RCEActionHandler(actionData: ActionData, actionList: Recor
342342
}
343343

344344
if (effectivePermission === PermissionLevel.AUTOPILOT) {
345+
for (const d of eventArray) d.dispose();
345346
const result = action.handler(actionData);
346347
NEURO.client?.sendActionResult(actionData.id, true, result);
347348
}

0 commit comments

Comments
 (0)