Skip to content

n-api: handle weak no-finalizer refs correctly - #34839

Closed
gabrielschulhof wants to merge 1 commit into
nodejs:masterfrom
gabrielschulhof:n-api-fix-delete-after-weaken
Closed

gabrielschulhof wants to merge 1 commit into
nodejs:masterfrom
gabrielschulhof:n-api-fix-delete-after-weaken

Conversation

@gabrielschulhof

Copy link
Copy Markdown
Contributor

When deleting a weak reference that has no finalizer we must not defer
deletion until the non-existent finalizer gets called.

Fixes: #34731

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. node-api Issues and PRs related to Node-API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

N-API reference management leaks memory

7 participants