[Python-checkins] r69381 - in python/branches/release30-maint: Misc/NEWS Modules/_tkinter.c

guilherme.polo python-checkins at python.org
Sat Feb 7 00:30:11 CET 2009


Author: guilherme.polo
Date: Sat Feb  7 00:30:11 2009
New Revision: 69381

Log:
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.


Modified:
   python/branches/release30-maint/Misc/NEWS
   python/branches/release30-maint/Modules/_tkinter.c

Modified: python/branches/release30-maint/Misc/NEWS
==============================================================================
--- python/branches/release30-maint/Misc/NEWS	(original)
+++ python/branches/release30-maint/Misc/NEWS	Sat Feb  7 00:30:11 2009
@@ -111,6 +111,10 @@
 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 #5132: Fixed trouble building extensions under Solaris with 
   --enabled-shared activated. Initial patch by Dave Peterson.
 

Modified: python/branches/release30-maint/Modules/_tkinter.c
==============================================================================
--- python/branches/release30-maint/Modules/_tkinter.c	(original)
+++ python/branches/release30-maint/Modules/_tkinter.c	Sat Feb  7 00:30:11 2009
@@ -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);


More information about the Python-checkins mailing list