iOSアプリでメモリリークを追跡してきましたが、リークインストルメントを使用して次のコードに戻り続けています。
NSMutableArray *resultSet = [[NSMutableArray alloc] initWithCapacity:3];
NSAutoreleasePool *innerPool = [[NSAutoreleasePool alloc] init];
FMResultSet *rs = [db executeQuery:query,equipmentID];
while ([rs next])
{
[resultSet addObject: [rs resultDict]];
}
[rs close];
[innerPool release];
return [resultSet autorelease];
これは(メモリ管理の観点から)FMDBの正しい使用法ですか?リーク機器のスクリーンショットは次のとおりです。
リークの詳細なスクリーンショット: