Revision: 8902 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8902&view=rev Author: mdehoon Date: 2011-01-08 07:09:23 +0000 (Sat, 08 Jan 2011)
Log Message: ----------- Fixing a bug. Due to a race condition, the view of a closing window could get one release too many. Modified Paths: -------------- branches/v1_0_maint/src/_macosx.m Modified: branches/v1_0_maint/src/_macosx.m =================================================================== --- branches/v1_0_maint/src/_macosx.m 2011-01-08 06:56:42 UTC (rev 8901) +++ branches/v1_0_maint/src/_macosx.m 2011-01-08 07:09:23 UTC (rev 8902) @@ -3363,7 +3363,6 @@ [window setDelegate: view]; [window makeFirstResponder: view]; [[window contentView] addSubview: view]; - [view release]; [window makeKeyAndOrderFront: nil]; nwin++; @@ -4448,6 +4447,10 @@ gstate = PyGILState_Ensure(); Py_DECREF(manager); PyGILState_Release(gstate); + /* The reference count of the view that was added as a subview to the + * content view of this window was increased during the call to addSubview, + * and is decreased during the call to [super dealloc]. + */ [super dealloc]; } @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins