Issue #25745: Fixed leaking a userptr in curses panel destructor.
This commit is contained in:
parent
02d9f5e5b2
commit
df40b62390
|
@ -116,6 +116,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #25745: Fixed leaking a userptr in curses panel destructor.
|
||||||
|
|
||||||
- Issue #26881: The modulefinder module now supports extended opcode arguments.
|
- Issue #26881: The modulefinder module now supports extended opcode arguments.
|
||||||
|
|
||||||
- Issue #23815: Fixed crashes related to directly created instances of types in
|
- Issue #23815: Fixed crashes related to directly created instances of types in
|
||||||
|
|
|
@ -220,6 +220,11 @@ PyCursesPanel_New(PANEL *pan, PyCursesWindowObject *wo)
|
||||||
static void
|
static void
|
||||||
PyCursesPanel_Dealloc(PyCursesPanelObject *po)
|
PyCursesPanel_Dealloc(PyCursesPanelObject *po)
|
||||||
{
|
{
|
||||||
|
PyObject *obj = (PyObject *) panel_userptr(po->pan);
|
||||||
|
if (obj) {
|
||||||
|
(void)set_panel_userptr(po->pan, NULL);
|
||||||
|
Py_DECREF(obj);
|
||||||
|
}
|
||||||
(void)del_panel(po->pan);
|
(void)del_panel(po->pan);
|
||||||
if (po->wo != NULL) {
|
if (po->wo != NULL) {
|
||||||
Py_DECREF(po->wo);
|
Py_DECREF(po->wo);
|
||||||
|
|
Loading…
Reference in New Issue