From: <md...@us...> - 2011-01-28 12:38:40
|
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. |