diff options
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index c71ffd0..58640e2 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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; } { |