Hi all i am getting memory leaks with following lines of code .how to solve ….
const char *value = (const char *)sqlite3_column_text(statement, i);
[result setObject:[NSString stringWithCString:value encoding:NSUTF8StringEncoding] forKey:columnName];
or
const char *value = (const char*)sqlite3_column_text(statement, i);
NSString *str_Value = [[NSString alloc] initWithFormat:@"%@",[NSString stringWithUTF8String:value]] ;
[result setObject:str_Value forKey:columnName];
[str_Value release];
how to remove this leaks .please help out……
You need to null check for it;