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

Add plugin clean up hook and dispatch handler #52

Open
dudk opened this issue May 14, 2021 · 0 comments
Open

Add plugin clean up hook and dispatch handler #52

dudk opened this issue May 14, 2021 · 0 comments
Labels
enhancement plugin Issue relates to building Go plugins

Comments

@dudk
Copy link
Member

dudk commented May 14, 2021

Currently plugin doesn't implement any clean-up. What needs to be freed:

  • Plugin double and float buffers (allocated by library);
  • Plugin structure placed into map (done by library);
  • Plugin internal resources (allocated by plugin code) - important note is that plugin developed in Go and go has GC, so most users won't have any recourses to free;

Because resources allocated by both a user and a library must be freed, it's not enough to just provide a hook for the user.

@dudk dudk added enhancement plugin Issue relates to building Go plugins labels May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement plugin Issue relates to building Go plugins
Projects
None yet
Development

No branches or pull requests

1 participant