| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…l.panel` (pythonGH-138333) This commit fixes possible reference loops via `panel.set_userptr` by implementing `tp_clear` and `tp_traverse` for panel objects. (cherry picked from commit 572df47) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
There was a problem hiding this comment.
LGTM. 👍
Sorry, something went wrong.
| { | ||
| PyCursesPanelObject *po = PyObject_New(PyCursesPanelObject, | ||
| state->PyCursesPanel_Type); | ||
| assert(state != NULL); |
There was a problem hiding this comment.
These asserts are redundant. Dereferencing a NULL pointer has a similar effect to a failed assert.
Sorry, something went wrong.
There was a problem hiding this comment.
I actually added those asserts for debugging purposes. Since they are on main, I think it's better to reduce the diff.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This commit fixes possible reference loops via panel.set_userptr by implementing tp_clear and tp_traverse for panel objects. (cherry picked from commit 572df47)