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 c4806b2 commit 6116032Copy full SHA for 6116032
Modules/_curses_panel.c
@@ -432,10 +432,14 @@ PyCursesPanel_Dealloc(PyObject *self)
432
tp = (PyObject *) Py_TYPE(po);
433
obj = (PyObject *) panel_userptr(po->pan);
434
if (obj) {
435
- (void)set_panel_userptr(po->pan, NULL);
436
Py_DECREF(obj);
+ if (set_panel_userptr(po->pan, NULL) == ERR) {
437
+ PyErr_FormatUnraisable("Exception ignored in set_panel_userptr()");
438
+ }
439
440
+ if (del_panel(po->pan) == ERR) {
441
+ PyErr_FormatUnraisable("Exception ignored in del_panel()");
442
}
- (void)del_panel(po->pan);
443
if (po->wo != NULL) {
444
Py_DECREF(po->wo);
445
remove_lop(po);
0 commit comments