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

Memory management #9

Open
robertf224 opened this issue Oct 10, 2022 · 1 comment
Open

Memory management #9

robertf224 opened this issue Oct 10, 2022 · 1 comment
Labels
question Further information is requested

Comments

@robertf224
Copy link

Hi! I like the design of this library, was going to look into using in a project but noticed the .free() method on the EmailAddress class. Not too familiar with the latest on wasm stuff but appears as though I might need to manually do memory management here and explicitly free an EmailAddress after I'm done with it?

@Sayan751 Sayan751 added the question Further information is requested label Oct 10, 2022
@Sayan751
Copy link
Owner

Hi @robertf224! Thank you for your question. I am currently using wasm-pack to create the wasm modules. That currently does not support the --weak-refs flag; refer to this issue.

In the absence of that, it is better to call the .free() method to deallocate the memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants