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

Fixing memory leak when converting to PyObject from some SAFEARRAY elements #2316

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

kjpowerworld
Copy link
Contributor

Some SAFEARRAY element types require ownership change when converted to PyObjects. This includes the BSTR, IUnknown and IDispatch types. Otherwise the memory gets leaked upon garbage collection. This pull request fixes #640.

Some SAFEARRAY element types require ownership change when converted to
PyObjects. This includes the BSTR, IUnknown and IDispatch types.
Otherwise the memory gets leaked upon garbage collection.
Copy link
Owner

@mhammond mhammond left a comment

Choose a reason for hiding this comment

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

Thanks, sorry for the delay.

@mhammond mhammond merged commit 636e4c0 into mhammond:main Oct 18, 2024
31 checks passed
@Avasam
Copy link
Collaborator

Avasam commented Oct 18, 2024

Is someone able to check if this also fixed #1864 ?

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.

Memory Leak in Safearray Conversion
4 participants