Revision: 8936
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8936&view=rev
Author: mdehoon
Date: 2011-01-28 12:38:34 +0000 (Fri, 28 Jan 2011)
Log Message:
-----------
Make an autorelease pool, otherwise we're leaking memory.
Modified Paths:
--------------
trunk/matplotlib/src/_macosx.m
Modified: trunk/matplotlib/src/_macosx.m
===================================================================
--- trunk/matplotlib/src/_macosx.m 2011-01-24 09:41:49 UTC (rev 8935)
+++ trunk/matplotlib/src/_macosx.m 2011-01-28 12:38:34 UTC (rev 8936)
@@ -4705,8 +4705,10 @@
NSText* messagebox = self->messagebox;
if (messagebox)
- { NSString* text = [NSString stringWithUTF8String: message];
+ { NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
+ NSString* text = [NSString stringWithUTF8String: message];
[messagebox setString: text];
+ [pool release];
}
Py_INCREF(Py_None);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins