We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49cf9ea commit 3221127Copy full SHA for 3221127
Modules/_curses_panel.c
@@ -435,7 +435,7 @@ PyCursesPanel_Clear(PyObject *op)
435
PyCursesPanelObject *self = _PyCursesPanelObject_CAST(op);
436
PyObject *extra = (PyObject *)panel_userptr(self->pan);
437
if (extra != NULL) {
438
- Py_CLEAR(extra);
+ Py_DECREF(extra);
439
if (set_panel_userptr(self->pan, NULL) == ERR) {
440
curses_panel_panel_set_error(self, "set_panel_userptr", NULL);
441
}
0 commit comments