Skip to content

Commit c3b9de8

Browse files
Cleanup swjs_heap_rc after deallocation
1 parent e85e31c commit c3b9de8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: Runtime/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class SwiftRuntimeHeap {
6969
const rc = --value.swjs_heap_rc;
7070
if (rc != 0) return;
7171
delete value.swjs_heap_id;
72+
delete value.swjs_heap_rc;
7273
this._heapValues.delete(ref)
7374
} else {
7475
this._heapValues.delete(ref)

0 commit comments

Comments
 (0)