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 15a6127 commit bdd3567Copy full SHA for bdd3567
Modules/_tkinter.c
@@ -2131,8 +2131,12 @@ Tkapp_GetInt(PyObject *self, PyObject *args)
2131
result = fromWideIntObj(self, value);
2132
#endif
2133
Tcl_DecrRefCount(value);
2134
- if (result != NULL)
2135
- return PyNumber_Int(result);
+ if (result != NULL) {
+ PyObject *resint = PyNumber_Int(result);
2136
+ Py_DECREF(result);
2137
+ return resint;
2138
+ }
2139
+
2140
if (PyErr_Occurred())
2141
return NULL;
2142
#else
0 commit comments