Re: Method with +
Re: Method with +
- Subject: Re: Method with +
- From: Lorenzo <email@hidden>
- Date: Sat, 20 May 2006 01:21:41 +0200
thanks, I will free that.
Best Regards
--
Lorenzo
email: email@hidden
> From: Bill Bumgarner <email@hidden>
> Date: Fri, 19 May 2006 16:21:05 -0700
> To: Lorenzo <email@hidden>
> Cc: email@hidden
> Subject: Re: Method with +
>
> On May 19, 2006, at 3:25 PM, Lorenzo wrote:
>
>> BOOL *par = [MyClass GetParametersList];
>>
>> // in the class MyClass
>> + (BOOL*)GetParametersList
>> {
>> BOOL *parList = calloc(kTotTimeParam, sizeof(BOOL));
>> int i;
>>
>> for(i = 0; i < kTotTimeParam; i++){
>> parList[i] = (i >= kTimeGenPosX && i <= kTimeGenVolu);
>> }
>>
>> return parList;
>> }
>
> You have allocated a chunk of memory. You are responsible for freeing
> it.
>
> b.bum
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden