diff options
-rw-r--r-- | Doc/ACKS.txt | 1 | ||||
-rw-r--r-- | Modules/_tkinter.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt index 70063c0..03e1a6b 100644 --- a/Doc/ACKS.txt +++ b/Doc/ACKS.txt @@ -120,6 +120,7 @@ docs@python.org), and we'll be glad to correct the problem. * Thomas Lamb * Detlef Lannert * Piers Lauder + * Julia Lawall * Glyph Lefkowitz * Robert Lehmann * Marc-André Lemburg diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 3608e2d..23906de 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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; |