Content-Length: 211116 | pFad | https://github.com/python/cpython/commit/289cf0fbf78c4f38c38ac71ac8b772be7ec2672f

18 bpo-38823: Clean up refleaks in _tkinter initialization. (GH-17206) · python/cpython@289cf0f · GitHub
Skip to content

Commit

Permalink
bpo-38823: Clean up refleaks in _tkinter initialization. (GH-17206)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher authored and miss-islington committed Nov 18, 2019
1 parent 5383956 commit 289cf0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -3555,11 +3555,13 @@ PyInit__tkinter(void)
if (!ret && GetLastError() == ERROR_ENVVAR_NOT_FOUND) {
str_path = _get_tcl_lib_path();
if (str_path == NULL && PyErr_Occurred()) {
Py_DECREF(m);
return NULL;
}
if (str_path != NULL) {
wcs_path = PyUnicode_AsWideCharString(str_path, NULL);
if (wcs_path == NULL) {
Py_DECREF(m);
return NULL;
}
SetEnvironmentVariableW(L"TCL_LIBRARY", wcs_path);
Expand Down

0 comments on commit 289cf0f

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/commit/289cf0fbf78c4f38c38ac71ac8b772be7ec2672f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy