The following is causing leaks (identified via the Leaks instrume开发者_JAVA技巧nt):
field = (char *) sqlite3_column_text(statement, 2);
NSString *column3 = [[[NSString alloc] initWithUTF8String:field]]; (this line here)
rowDefinitionA = column3;
[column3 release];
Is there anything wrong with that line specifically?
You're actually over-releasing column3
. Either lose the autorelease
or [column3 release]
.
精彩评论