diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-08 20:46:22 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-08 20:46:22 +0300 |
commit | e3f1b0911e02f5108b90b9b25417a448a423da40 (patch) | |
tree | a9f0a153bfdbe33f242c3dcbcb25f6b2d31afe8e /Modules/_tkinter.c | |
parent | 4c35964b764540988bfb342bffc7c4b1cb674031 (diff) | |
download | cpython-git-e3f1b0911e02f5108b90b9b25417a448a423da40.tar.gz |
Issue #23815: Fixed crashes related to directly created instances of types in
_tkinter and curses.panel modules.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 41ad5f91f7..cf56fa836a 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -3551,6 +3551,7 @@ PyInit__tkinter(void) Py_DECREF(m); return NULL; } + ((PyTypeObject *)o)->tp_new = NULL; if (PyModule_AddObject(m, "TkappType", o)) { Py_DECREF(o); Py_DECREF(m); @@ -3563,6 +3564,7 @@ PyInit__tkinter(void) Py_DECREF(m); return NULL; } + ((PyTypeObject *)o)->tp_new = NULL; if (PyModule_AddObject(m, "TkttType", o)) { Py_DECREF(o); Py_DECREF(m); @@ -3575,6 +3577,7 @@ PyInit__tkinter(void) Py_DECREF(m); return NULL; } + ((PyTypeObject *)o)->tp_new = NULL; if (PyModule_AddObject(m, "Tcl_Obj", o)) { Py_DECREF(o); Py_DECREF(m); |