Commit 889a321
committed
Drop the user pointer reference after unlinking it in tp_clear
PyCursesPanel_Clear() released the user pointer before clearing it from
the panel, leaving the panel pointing at an object whose refcount could
reach zero. Same ordering as the deallocator.1 parent 44ab80b commit 889a321
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
441 | 440 | | |
442 | 441 | | |
443 | 442 | | |
444 | 443 | | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
0 commit comments