fix rogue releases

This commit is contained in:
dcode
2019-05-21 00:38:48 +02:00
parent 3e480d9423
commit 1cbf3fc885
27 changed files with 53330 additions and 54655 deletions

View File

@ -980,6 +980,5 @@ class Ref { constructor() {} }
assert(subarrU32.toString() == "1");
}
// Unleak globals that'd otherwise retain a reference
arr = changetype<i32[]>(0);
// Unleak globals
__release(changetype<usize>(arr));