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

Free context when stream is deallocated #329

Merged
merged 1 commit into from Jun 8, 2021
Merged

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Jun 4, 2021

We can automatically deallocate the stream context upon stream deallocation by specifying a release callback.

Note: As far as I can tell, this should be equivalent to the old way of deallocating the context, this just avoids aliasing the pointer, so I don't think we need to cut a release just to incorporate this fix.

We can automatically deallocate the stream context upon stream
deallocation by specifying a `release` callback.
Copy link
Member

@0xpr03 0xpr03 left a comment

Choose a reason for hiding this comment

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

that's an even better solution

@0xpr03 0xpr03 merged commit 8fbbcf0 into notify-rs:main Jun 8, 2021
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.

None yet

3 participants