[x] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
fix(workers): Memory leaks in workers' microtasks
Add an @autoreleasepool in drainMicrotasks.
fix(bridge): Memory leak in FFICall::initializeFFI
Refactor FFICache to keep a copy of the arguments vector
of ffi_type*. So far, we've leaked all pointers allocated for the
local parameterTypesFFITypes variable, while only those that
enter the cache needed to be kept alive.
fix(webkit): Prevent 2nd destructor call from ThreadSafeRefCounted
PR Checklist
[x] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
[x] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
[x] You have signed the CLA.
[x] All existing tests are passing: https://github.com/NativeScript/ios-runtime/blob/master/CONTRIBUTING.md#contribute-to-the-code-base
[ ] Tests for the changes are included.
fix(workers): Memory leaks in workers' microtasks Add an
@autoreleasepool
indrainMicrotasks
.fix(bridge): Memory leak in
FFICall::initializeFFI
RefactorFFICache
to keep a copy of the arguments vector offfi_type*
. So far, we've leaked all pointers allocated for the localparameterTypesFFITypes
variable, while only those that enter the cache needed to be kept alive.fix(webkit): Prevent 2nd destructor call from
ThreadSafeRefCounted
refs #1137