Skip to content

fix: ndarray_from_qimage does not hold a reference to qimage#2492

Merged
ntjess merged 1 commit intopyqtgraph:masterfrom
pijyoi:fix-ndarray-from-qimage-usage
Oct 17, 2022
Merged

fix: ndarray_from_qimage does not hold a reference to qimage#2492
ntjess merged 1 commit intopyqtgraph:masterfrom
pijyoi:fix-ndarray-from-qimage-usage

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented Oct 15, 2022

Note: ndarray_from_qimage is a library internal function.

It is the user's responsibility to ensure that the life-cycle of the QImage exceeds that of the created ndarray view.
A search of the usages of ndarray_from_qimage within the library will show safe ways to use it.

@ntjess
Copy link
Copy Markdown
Contributor

ntjess commented Oct 17, 2022

Thanks for the clear explanation and fix. LGTM

@ntjess ntjess merged commit edc7dc7 into pyqtgraph:master Oct 17, 2022
@pijyoi pijyoi deleted the fix-ndarray-from-qimage-usage branch October 17, 2022 14:19
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.

2 participants