Clear weak reference list when an extension type is destroyed by lostmsu · Pull Request #1761 · pythonnet/pythonnet

@lostmsu

According to official documentation for defining extension types, if they are to support weak references, they must clear weak reference list associated with the instance in tp_clear.

Extension types were missed in pythonnet#1758 ( 50da522 )