From 14ff18d211f368cf6eb668365fca17ff4581bc1b Mon Sep 17 00:00:00 2001 From: Guilherme Polo Date: Fri, 6 Feb 2009 22:26:22 +0000 Subject: Partial fix to issue #1731706: memory leak in Tkapp_Call when calling from a thread different than the one that created the Tcl interpreter. --- Modules/_tkinter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Modules') diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 8b56bcd0dc..79fa6327ae 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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); -- cgit v1.2.1