Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require a deinit function when allocator is used by an API #143

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

francisbouvier
Copy link
Member

If at least 1 function of the API has an allocator as argument we will required this API to have a deinit function.

NOTE: for now we don't call this deinit function
but the idea is to call it after the JS engine
has marked an object for garbage collection.

Relates to #111
Relates to #62

If at least 1 function of the API has an allocator as argument
we will required this API to have a deinit function.

NOTE: for now we don't call this deinit function
but the idea is to call it after the JS engine
has marked an object for garbage collection.

Signed-off-by: Francis Bouvier <[email protected]>
Copy link
Member

@krichprollsch krichprollsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add a TODO somewhere saying we have to call the deinit().

@francisbouvier francisbouvier merged commit 9b2c1e2 into main Nov 27, 2023
3 checks passed
@krichprollsch krichprollsch deleted the deinit branch December 11, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants