Commit fe26c61
Fix JSValue leak in Detach causing JS_FreeRuntime assert on Android
Napi::Detach now calls JS_FreeValue on all remaining JSValues in the
handle scope stack before deleting the env. Previously unique_ptr only
freed heap memory without decrementing QuickJS reference counts.
Co-authored-by: Copilot <[email protected]>1 parent 8657c54 commit fe26c61
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| |||
0 commit comments