Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
df13df41
Commit
df13df41
authored
Oct 23, 2018
by
Serhiy Storchaka
Committed by
GitHub
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34794: Fix a leak in Tkinter. (GH-10025)
Based on the investigation by Xiang Zhang.
parent
9f3ed3e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Misc/NEWS.d/next/Library/2018-10-21-14-53-19.bpo-34794.yt3R4-.rst
...S.d/next/Library/2018-10-21-14-53-19.bpo-34794.yt3R4-.rst
+2
-0
Modules/_tkinter.c
Modules/_tkinter.c
+1
-3
No files found.
Misc/NEWS.d/next/Library/2018-10-21-14-53-19.bpo-34794.yt3R4-.rst
0 → 100644
View file @
df13df41
Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to
Tcl/Tk.
Modules/_tkinter.c
View file @
df13df41
...
...
@@ -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
;
}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment