Commit aaea2802 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

[2.7] bpo-34794: Fix a leak in Tkinter. (GH-10025) (GH-10181)

Based on the investigation by Xiang Zhang.
(cherry picked from commit df13df41)
parent 4704c33d
Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to
Tcl/Tk.
......@@ -1205,10 +1205,8 @@ AsObj(PyObject *value)
}
#endif
if(PyTclObject_Check(value)) {
Tcl_Obj *v = ((PyTclObject*)value)->value;
Tcl_IncrRefCount(v);
return v;
if (PyTclObject_Check(value)) {
return ((PyTclObject*)value)->value;
}
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment