V4CC - Another non autoreleased object
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Mon Sep 20 03:05:27 CDT 2010
On 9/19/10 9:16 PM, "Ernesto Giannotta" <erne at apimac.com> wrote:
Hi Erne,
> 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?
Yes of course please.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list