V4CC - Another non autoreleased object

Ernesto Giannotta erne at apimac.com
Sun Sep 19 13:16:41 CDT 2010


Hi Ruslan,

I've detected that this method of VDate and VDateTime:

- (NSDateComponents*) DateComponents;

returns a not autoreleased object:

leak:
	NSDateComponents *dc = [[mCursor dateTimeFieldForName:@"fld_date"] DateComponents];

no leak:
	NSDateComponents *dc = [[[mCursor dateTimeFieldForName:@"fld_date"] DateComponents] autorelease];

Other (very small) issue, according to naming conventions the method should be named "dateComponents" and not "DateComponents".


Should I Mantis this?


Cool Runnings,
Erne.



More information about the Valentina mailing list