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

Handle parameter ownership transfer for interfaces #1055

Merged
merged 3 commits into from
May 5, 2024

Conversation

badcel
Copy link
Member

@badcel badcel commented May 3, 2024

  • I agree that my contribution may be licensed either under MIT or any version of LGPL license.

Fixes: #1054

This avoids the creation of wrapper instances and the usage of reflection in this code path.
@badcel badcel marked this pull request as ready for review May 3, 2024 20:48
As the ownership transfer was not handled at all this could lead to double free bugs as C and C# could try to free the same instance twice.
@badcel badcel force-pushed the handle-parameter-ownership-transfer-for-interfaces branch 4 times, most recently from 296879a to 7b849c2 Compare May 5, 2024 19:07
@badcel badcel force-pushed the handle-parameter-ownership-transfer-for-interfaces branch from 7b849c2 to 878b6c6 Compare May 5, 2024 19:17
@badcel badcel merged commit a709499 into main May 5, 2024
3 checks passed
@badcel badcel deleted the handle-parameter-ownership-transfer-for-interfaces branch May 5, 2024 19:28
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.

ListView sample crashes
1 participant