diff Modules/_tkinter.c @ 51407:d4613e970498 legacy-trunk

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 22:26:22 +0000
parents 40ff83e02395
children 9856c4faac04
line wrap: on
line diff
--- a/Modules/_tkinter.c	Fri Feb 06 21:33:45 2009 +0000
+++ b/Modules/_tkinter.c	Fri Feb 06 22:26:22 2009 +0000
@@ -1256,7 +1256,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);