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

Fix panic when dropping vectors using ZeroCopyBuffer #60

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

shekohex
Copy link
Owner

@shekohex shekohex commented Jul 12, 2024

Related to #59

Fix the panic issue when dropping vectors using ZeroCopyBuffer.

  • src/ffi.rs: Add a check for a null pointer before deallocating memory in the Drop implementation of DartCObject.
  • tests/containers.rs: Add a test case to verify that dropping vectors using ZeroCopyBuffer no longer causes a panic.

For more details, open the Copilot Workspace session.

@shekohex shekohex linked an issue Jul 12, 2024 that may be closed by this pull request
@shekohex shekohex merged commit e137492 into master Jul 12, 2024
10 checks passed
@shekohex shekohex deleted the fix-panic-on-drop branch July 12, 2024 14:02
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.

Program seems to panic when dropping vectors
1 participant