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

bpo-34794: Fix a leak in Tkinter. (GH-10025)

Based on the investigation by Xiang Zhang.
parent 9f3ed3e2
Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to
Tcl/Tk.
......@@ -1101,9 +1101,7 @@ AsObj(PyObject *value)
}
if (PyTclObject_Check(value)) {
Tcl_Obj *v = ((PyTclObject*)value)->value;
Tcl_IncrRefCount(v);
return v;
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