FROM : Patrick Coskren
DATE : Wed Nov 20 09:32:25 2002
Whoops; you're right. Actually, "properties" is the only one that
might be null, but it needs to be checked. The amended code should
read:
CFRelease(desiredProperties);
CFRelease(document);
if (NULL != properties) {
CFRelease(properties);
}
On Tuesday, November 19, 2002, at 11:45 PM, Rosyna wrote:
> Yeah, this would crash if any of the pointers were NULL. I believe the
> code in CF is something like
>
> CFRelease(CFTypeRef arg);
> if (NULL==arg)
> abort();
>
> ;)
>
> Ack, at 11/19/02, Patrick Coskren said:
>
>> CFRelease(desiredProperties);
>> CFRelease(document);
>> CFRelease(properties);
>> return result;
>
> --
>
>
> Sincerely,
> Rosyna Keller
> Technical Support/Holy Knight/Always needs a hug
>
> Unsanity: Unsane Tools for Insanely Great People
> ---
>
> Please include any previous correspondence in replies, it helps me
> remember what we were talking about. Thanks.
>
DATE : Wed Nov 20 09:32:25 2002
Whoops; you're right. Actually, "properties" is the only one that
might be null, but it needs to be checked. The amended code should
read:
CFRelease(desiredProperties);
CFRelease(document);
if (NULL != properties) {
CFRelease(properties);
}
On Tuesday, November 19, 2002, at 11:45 PM, Rosyna wrote:
> Yeah, this would crash if any of the pointers were NULL. I believe the
> code in CF is something like
>
> CFRelease(CFTypeRef arg);
> if (NULL==arg)
> abort();
>
> ;)
>
> Ack, at 11/19/02, Patrick Coskren said:
>
>> CFRelease(desiredProperties);
>> CFRelease(document);
>> CFRelease(properties);
>> return result;
>
> --
>
>
> Sincerely,
> Rosyna Keller
> Technical Support/Holy Knight/Always needs a hug
>
> Unsanity: Unsane Tools for Insanely Great People
> ---
>
> Please include any previous correspondence in replies, it helps me
> remember what we were talking about. Thanks.
>
| Related mails | Author | Date |
|---|---|---|
| Patrick Coskren | Nov 19, 08:30 | |
| Gregory Seidman | Nov 19, 09:32 | |
| Timothy Ritchey | Nov 19, 09:57 | |
| Jake A. Repp | Nov 19, 09:58 | |
| Patrick Coskren | Nov 19, 10:07 | |
| Chris Parker | Nov 19, 10:18 | |
| Patrick Coskren | Nov 19, 10:33 | |
| Richard | Nov 19, 14:20 | |
| David Cake | Nov 19, 16:51 | |
| Rosyna | Nov 19, 20:47 | |
| Patrick Coskren | Nov 20, 09:32 | |
| Rosyna | Nov 20, 12:56 |






Cocoa mail archive

