Memory leak with returned NSMutableArray from function
问题 I'm having problems with the implementation of the memory management of objective c. I've reed several manuals, but i think that I'm loosing something. I'm developing an application that uses a UITableView that is loaded with the results of a query; -(NSMutableArray *)sqlReader:(NSString *)sqlString { NSMutableArray *sqlResult = [[[NSMutableArray alloc] init] autorelease]; NSMutableArray *sqlRow = [[NSMutableArray alloc] init]; sqlite3 *database; int dataType; int intResult; int colCount; int