Title: Delete target object from event handler collections when it has no more event handlers by lostmsu · Pull Request #1973 · pythonnet/pythonnet · GitHub
Open Graph Title: Delete target object from event handler collections when it has no more event handlers by lostmsu · Pull Request #1973 · pythonnet/pythonnet
X Title: Delete target object from event handler collections when it has no more event handlers by lostmsu · Pull Request #1973 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. The objects were leaking because they were kept as keys in a dictionary, that stored event handlers corresponding to object. This change ensures that when the last handler is removed from an object, the object is removed from that dictionary. Does this close any currently open issues? fixes #1972 Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. The objects were leaking because they were kept as keys in a dictionary, that stored event handlers corresponding to object. This change ensures ...
X Description: What does this implement/fix? Explain your changes. The objects were leaking because they were kept as keys in a dictionary, that stored event handlers corresponding to object. This change ensures ...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1973
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:df80f430-510b-44cc-cdce-c9e2c02776df |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E3A8:140F48:2CD897B:3C755F9:69707FDC |
| html-safe-nonce | 3ae412d412ace8e31de8876cdd18d154af410afb2b22feb410a0208324458bac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0E4OjE0MEY0ODoyQ0Q4OTdCOjNDNzU1Rjk6Njk3MDdGREMiLCJ2aXNpdG9yX2lkIjoiMjY1MDc0MDAxNzQwNjcwNTYyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ceed9bab18edb8b74b95df91aeee3dcec8ee719af374e3b4625d99e2907f667c |
| hovercard-subject-tag | pull_request:1086532473 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/pythonnet/pythonnet/pull/1973/files |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. The objects were leaking because they were kept as keys in a dictionary, that stored event handlers corresponding to object. This change ensures ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width