From: <tr...@us...> - 2011-09-01 18:27:02
|
Revision: 15000 http://alleg.svn.sourceforge.net/alleg/?rev=15000&view=rev Author: trentg Date: 2011-09-01 18:26:55 +0000 (Thu, 01 Sep 2011) Log Message: ----------- Fix a memory leak in get_standard_path on iOS Modified Paths: -------------- allegro/branches/5.1/src/iphone/iphone_path.m Modified: allegro/branches/5.1/src/iphone/iphone_path.m =================================================================== --- allegro/branches/5.1/src/iphone/iphone_path.m 2011-08-29 22:08:36 UTC (rev 14999) +++ allegro/branches/5.1/src/iphone/iphone_path.m 2011-09-01 18:26:55 UTC (rev 15000) @@ -8,6 +8,8 @@ NSString *string; NSArray *array; NSBundle *mainBundle; + + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; switch (id) { case ALLEGRO_USER_HOME_PATH: @@ -42,5 +44,8 @@ } sprintf(str, "%s", [string UTF8String]); + + [pool drain]; + return al_create_path_for_directory(str); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |