Reference leak around sipPyTypeDict() on 3.12

Phil Thompson phil at riverbankcomputing.com
Sat Oct 7 18:19:39 BST 2023


On 05/10/2023 14:40, Ryo Miyamoto wrote:
> Hello,
> 
> Python v3.12 has added PyType_GetDict() API, which is used in SIP.
> PyQt for 3.12 gets a new reference from sipPyTypeDict(), not borrowed.
> It seems like SIP or PyQt misses a decref for the dictionary.
> 
> https://github.com/python/cpython/commit/a840806d338805fe74a9de01081d30da7605a29f
> https://www.riverbankcomputing.com/hg/sip/rev/d36867e54192

Fix applied to PyQt5 and PyQt6.

Thanks,
Phil


More information about the PyQt mailing list