Partial fix to issue #1731706: memory leak in Tkapp_Call when calling

from a thread different than the one that created the Tcl interpreter.
This commit is contained in:
Guilherme Polo 2009-02-06 22:26:22 +00:00
parent aa397d1806
commit 14ff18d211
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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);