]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132776: Minor Fixes for XIBufferViewType (gh-132779)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 22 Apr 2025 23:37:20 +0000 (17:37 -0600)
committerGitHub <noreply@github.com>
Tue, 22 Apr 2025 23:37:20 +0000 (17:37 -0600)
commitb5bf8c80a921679b23548453565f6fd1f79901f2
tree09540020048a95fe325a3ebb3779cb484c5e8ee9
parenta4ea80d52394bafffb2257abbe815c7ffdb003a3
gh-132776: Minor Fixes for XIBufferViewType (gh-132779)

This change covers the following:

* dealloc: no cleanup if no buffer set
* dealloc: handle already-destroyed interpreter correctly
* handle errors in _memoryview_from_xid() correctly
* clean up the buffer if the xidata is never used
Modules/_interpretersmodule.c