Commit d8812a1
committed
fix: prevent keypress memory leak with multiple Inquirerer instances
- TerminalKeypress.pause() now resets raw mode (setRawMode(false)) to prevent
raw mode from leaking into subsequent text prompts after checkbox/autocomplete
- Inquirerer.close() now nullifies this.rl and this.keypress references so
subsequent calls detect the closed state and double-close is safe1 parent d41fae5 commit d8812a1
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1332 | 1335 | | |
| 1336 | + | |
1333 | 1337 | | |
1334 | 1338 | | |
1335 | 1339 | | |
0 commit comments