mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Closes #15396: memory leak in tkinter
This commit is contained in:
parent
29e49d6394
commit
ef86d12979
2 changed files with 4 additions and 1 deletions
|
@ -3135,8 +3135,10 @@ PyInit__tkinter(void)
|
|||
|
||||
PyDict_SetItemString(d, "TkappType", (PyObject *)&Tkapp_Type);
|
||||
|
||||
if (PyType_Ready(&Tktt_Type) < 0)
|
||||
if (PyType_Ready(&Tktt_Type) < 0) {
|
||||
Py_DECREF(m);
|
||||
return NULL;
|
||||
}
|
||||
PyDict_SetItemString(d, "TkttType", (PyObject *)&Tktt_Type);
|
||||
|
||||
Py_TYPE(&PyTclObject_Type) = &PyType_Type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue