in lib/src/arena.dart [83:97]
void releaseAll({bool reuse = false}) {
if (!reuse) {
_inUse = false;
}
// The code below is deliberately wirtten to allow allocations to happen
// during `releaseAll(reuse:true)`. The arena will still be guaranteed
// empty when the `releaseAll` call returns.
while (_managedResourceReleaseCallbacks.isNotEmpty) {
_managedResourceReleaseCallbacks.removeLast()();
}
for (final p in _managedMemoryPointers) {
_wrappedAllocator.free(p);
}
_managedMemoryPointers.clear();
}