summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorGuilherme Polo <ggpolo@gmail.com>2009-02-06 22:26:22 (GMT)
committerGuilherme Polo <ggpolo@gmail.com>2009-02-06 22:26:22 (GMT)
commit14ff18d211f368cf6eb668365fca17ff4581bc1b (patch)
tree35b073fa29d926d7f06d19a325e9c9dd5db50534 /Modules/_tkinter.c
parentaa397d180635bbab6a2f2998da396fc5006b8ced (diff)
downloadcpython-14ff18d211f368cf6eb668365fca17ff4581bc1b.zip
cpython-14ff18d211f368cf6eb668365fca17ff4581bc1b.tar.gz
cpython-14ff18d211f368cf6eb668365fca17ff4581bc1b.tar.bz2
Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
from a thread different than the one that created the Tcl interpreter.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 8b56bcd..79fa632 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);