diff Modules/_tkinter.c @ 51412:c02895a3ed6d 3.0

Hand-merged revision 69376 from svn+ssh://pythondev/python/trunk ........ r69376 | guilherme.polo | 2009-02-06 20:26:22 -0200 Partial fix to issue #1731706: memory leak in Tkapp_Call when calling from a thread different than the one that created the Tcl interpreter.
author Guilherme Polo <ggpolo@gmail.com>
date Fri, 06 Feb 2009 23:30:11 +0000
parents 362d96dbe92c
children 1066776e2820
line wrap: on
line diff
--- a/Modules/_tkinter.c	Fri Feb 06 16:41:19 2009 +0000
+++ b/Modules/_tkinter.c	Fri Feb 06 23:30:11 2009 +0000
@@ -1208,7 +1208,9 @@
 		*(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);