Skip to content

Commit

Permalink
Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
Browse files Browse the repository at this point in the history
from a thread different than the one that created the Tcl interpreter.


git-svn-id: http://svn.python.org/projects/python/trunk@69376 6015fed2-1504-0410-9fe1-9d1591cc4771
  • Loading branch information
guilherme.polo committed Feb 6, 2009
1 parent b7bf07c commit 3465b36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ Core and Builtins
Library
-------

- Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
from a thread different than the one that created the Tcl interpreter.
Patch by Robert Hancock.

- Issue #1520877: Now distutils.sysconfig reads $AR from the
environment/Makefile. Patch by Douglas Greiman.

Expand Down
4 changes: 3 additions & 1 deletion Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,9 @@ Tkapp_CallProc(Tkapp_CallEvent *e, int flags)
*(e->res) = Tkapp_CallResult(e->self);
}
LEAVE_PYTHON
done:

Tkapp_CallDeallocArgs(objv, objStore, objc);
done:
/* Wake up calling thread. */
Tcl_MutexLock(&call_mutex);
Tcl_ConditionNotify(&e->done);
Expand Down

0 comments on commit 3465b36

Please sign in to comment.