Skip to content

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

Merged
mhammond merged 1 commit intomhammond:mainfrom
kjpowerworld:safearray_memory_leak_fix
Oct 18, 2024
Merged

Fixing memory leak when converting to PyObject from some SAFEARRAY elements#2316
mhammond merged 1 commit intomhammond:mainfrom
kjpowerworld:safearray_memory_leak_fix

Conversation

@kjpowerworld
Copy link
Copy Markdown
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
Copy Markdown
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
@Avasam
Copy link
Copy Markdown
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